From: "H.Merijn Brand" Subject: Re: Feature suggestion: git-hist Date: Wed, 30 Jul 2008 17:29:28 +0200 Message-ID: <20080730172928.5b9ed2c8@pc09.procura.nl> References: <20080730133859.368bbd92@pc09.procura.nl> <20080730133334.GB31192@lars.home.noschinski.de> <20080730155835.71289eee@pc09.procura.nl> <8aa486160807300818m108920a0pe4a5de47de8d838c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Lars Noschinski" , git@vger.kernel.org To: "Santi =?UTF-8?B?QsOpamFy?=" X-From: git-owner@vger.kernel.org Wed Jul 30 17:31:17 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KODdI-0006UJ-KG for gcvg-git-2@gmane.org; Wed, 30 Jul 2008 17:30:33 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752918AbYG3P3b convert rfc822-to-quoted-printable (ORCPT ); Wed, 30 Jul 2008 11:29:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752830AbYG3P3b (ORCPT ); Wed, 30 Jul 2008 11:29:31 -0400 Received: from smtp-vbr4.xs4all.nl ([194.109.24.24]:3727 "EHLO smtp-vbr4.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752814AbYG3P3a convert rfc822-to-8bit (ORCPT ); Wed, 30 Jul 2008 11:29:30 -0400 Received: from pc09.procura.nl (procura.xs4all.nl [82.95.216.29]) (authenticated bits=0) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id m6UFTSXa074007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Jul 2008 17:29:28 +0200 (CEST) (envelope-from h.m.brand@xs4all.nl) In-Reply-To: <8aa486160807300818m108920a0pe4a5de47de8d838c@mail.gmail.com> X-Mailer: Claws Mail 3.5.0cvs35 (GTK+ 2.12.0; x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwEAIAAACI8LKTAAAACXBIWXMAAABIAAAASABGyWs+AAAC JElEQVRo3u2aMY4CMQxFczZ6RItEzRm4DBINDbRUSPRInIRbsNK6+dJfezN4kokn48IaCSjysL8d e9Knoj2fr9f9/gllqQ6U9/vxWK3EdwdIEGjRIVCu18NhuxUfK46SH81+fzrdbuKPx/P5ctHQdAdI TKAgpvV6s9ntBEfXEYSGgMQzIHnuFBBjkshCNJ2KtJZ04hHNAugP8bZr3NIHhbcF0AKoK0CoaHXU LUWBIs1n+jV+Fl8CVqOApEXAwyMO/DSR4XVntoAYDR7eBjQupuYAYTMph8Rj21D4m7MChN02tpqs NSnb/KqU2oHCXu5xDCgflj/RAgBiKBIXnICzAsSjWBsTz5K4/HeXYvb8yK5lY3VGEwPi2aONKT+5 AlcxrTPOwcTiraGRChgMEKJh0bVVifGVTq6qgBiNVl8QE29EsK6VE+YJAOG2wz5AvsqUS6uqgHCA n4NGvBYpnJ64Jgg27sCtxtBk1CJIA4S/GhdWKh07QxUB48jWGhZ4jKamRRr/T8/M0AaEyctry6YB 4dTGj9iWZNs3DahES5kPCJOu0RQbF/fQOBprsB9gaO9JtPDzII9U5ySXX7AnuIt91y54AAW7rPpT LCe5gt3F+CLqr2UarGB3MXvMylWGq4+9RCx3TW1oJq1t3HPQlFs6N1fFNEB4s8dn7Ne7ACSm7TPQ I5quAWmw6qBpulHM33B0Csge4Nd8JTTYG2b1XyRe3lH8x34ABJ6aePuQ2N4AAAAASUVORK5CYII= X-Virus-Scanned: by XS4ALL Virus Scanner Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Wed, 30 Jul 2008 17:18:59 +0200, "Santi B=C3=A9jar" wrote: > On Wed, Jul 30, 2008 at 15:58, H.Merijn Brand w= rote: > > On Wed, 30 Jul 2008 15:33:34 +0200, Lars Noschinski > > wrote: > > > >> * H.Merijn Brand [08-07-30 13:38]: > >> > >> > I can ask them what version they have, and I can then check = if > >> > the complaint was already addressed in an update that was > >> > already released. In SCCS this was easy: they tell me the ou= tput > >> > of the what command, I check if the bug was fixed in a newer > >> > version and the answer is present. No such luck in git, as t= he > >> > stamps are (non-sequitive) SHA id's. As we moved to git, we = now > >> > have to update those id's by hand, as the customers are used= to > >> > it. (At least we can now use readable date formats) > >> > >> Hm, what about "git-describe --contains $SHA_OF_BUGFIX"? > > > > If you come from a SCCS environment, the developers are used to see= the > > version of a single file, not of the id of a fix. One of the reason= s we > > moved from SCCS to git, is that we now can commit a group of files = as a > > single commit, and later look at the complete picture. > > > > We are not used to working with $SHA's, and IMHO from the end-user = pov, > > a $SHA is less user friendly than a release number or a file versio= n. I > > can remember a version, but I cannot remember a SHA. >=20 > > > > The end user only has the application, which is (or at least should= be) > > able to spit out its release version. >=20 > As git itself does: >=20 > $ git version > git version 1.6.0.rc1.11.g1ce47 >=20 > I think it is far better to know the version of the entire project, > than the version of a single file. Yes. I agree. We us tags to `mark' the release, but with the repo's of a project (still) scattered around, it is far from ideal. And as to a single file: I mostly know (when I fixed something) in what file I fixed it, so the first thing I do is to check that file against the revision that the customer runs. > > That is all we can go by when we dig back into the history to see w= here > > we changed things. > > > > One (very) big disadvantage of SCCS is that commits are on a per-= file > > basis, and only in a single directory. This drawback still haunts m= e in > > git, as my first attempts to convert were successful in a single fo= lder > > and git cannot merge folders into a single project. > > > > Say I now have > > > > /work/src/project/.git > > /work/src/project/module_a/.git > > /work/src/project/module_b/.git > > /work/src/project/module_c/.git > > > > Which are all converted repos from SCCS, I'd like to merge the thre= e > > module_# repos into the top level repo. >=20 > You have, basically, two possibilities: >=20 > 1) Add the module_# as submodules: > http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html > http://git.or.cz/gitwiki/GitSubmoduleTutorial > 2) Add the submodules as subtrees (as gitk and git-gui in git.git) > http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-s= ubtree.html Thanks, I'll start reading ... --=20 H.Merijn Brand Amsterdam Perl Mongers http://amsterdam.pm.org= / using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00= , 11.11, 11.23, and 11.31, SuSE 10.1, 10.2, and 10.3, AIX 5.2, and Cygwin= =2E http://mirrors.develooper.com/hpux/ http://www.test-smoke.org= / http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers= /