* Re: ia64 git pull [not found] ` <Pine.LNX.4.58.0504211520250.2344@ppc970.osdl.org> @ 2005-04-21 22:58 ` Petr Baudis 0 siblings, 0 replies; 4+ messages in thread From: Petr Baudis @ 2005-04-21 22:58 UTC (permalink / raw) To: Linus Torvalds; +Cc: tony.luck, linux-ia64, linux-kernel, git Dear diary, on Fri, Apr 22, 2005 at 12:29:07AM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that... > On Thu, 21 Apr 2005 tony.luck@intel.com wrote: > > > > I can't quite see how to manage multiple "heads" in git. I notice that in > > your tree on kernel.org that .git/HEAD is a symlink to heads/master ... > > perhaps that is a clue. > > It's mainly a clue to bad practice, in my opinion. I personally like the > "one repository, one head" approach, and if you want multiple heads you > just do multiple repositories (and you can then mix just the object > database - set your SHA1_FILE_DIRECTORY environment variable to point to > the shared object database, and you're good to go). There are two points regarding this: (i) You need to track heads of remote branches anyway. (ii) I want an easy way for user to refer to head of another working tree on the same repository (so that you can do just git merge testing). This is why the multiple heads are there, and it's actually everything they _do_. There's nothing more behind it. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <200504212301.j3LN1Do05507@unix-os.sc.intel.com>]
[parent not found: <20050422012546.GD1474@pasky.ji.cz>]
[parent not found: <17000.22515.170455.192374@sodium.jf.intel.com>]
* Re: ia64 git pull [not found] ` <17000.22515.170455.192374@sodium.jf.intel.com> @ 2005-04-22 1:53 ` Petr Baudis 2005-04-22 2:06 ` Inaky Perez-Gonzalez 0 siblings, 1 reply; 4+ messages in thread From: Petr Baudis @ 2005-04-22 1:53 UTC (permalink / raw) To: Inaky Perez-Gonzalez Cc: tony.luck, Linus Torvalds, linux-ia64, linux-kernel, git Dear diary, on Fri, Apr 22, 2005 at 03:48:35AM CEST, I got a letter where Inaky Perez-Gonzalez <inaky@linux.intel.com> told me that... > >>>>> Petr Baudis <pasky@ucw.cz> writes: > > > I've just added to git-pasky a possibility to refer to branches > > inside of repositories by a fragment identifier: > > > rsync://rsync.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6.git#testing > > > will refer to your testing branch in that repository. > > Can we use something other than #? we'll have to scape it all the time > in the shell (or at least also allow some other char, something > without special meta-character meaning in the shell, like %). Remember that it's an URL (so you can't use '%'), and '#' is the canonical URL fragment identifier delimiter. (And fragments are perfect for this kind of thing, if you look at the RFC, BTW.) Still, why would you escape it? My shell will not take # as a comment start if it is immediately after an alphanumeric character. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ia64 git pull 2005-04-22 1:53 ` Petr Baudis @ 2005-04-22 2:06 ` Inaky Perez-Gonzalez 2005-04-22 3:30 ` David A. Wheeler 0 siblings, 1 reply; 4+ messages in thread From: Inaky Perez-Gonzalez @ 2005-04-22 2:06 UTC (permalink / raw) To: Petr Baudis; +Cc: tony.luck, Linus Torvalds, linux-ia64, linux-kernel, git >>>>> Petr Baudis <pasky@ucw.cz> writes: > Remember that it's an URL (so you can't use '%'), and '#' is the > canonical URL fragment identifier delimiter. (And fragments are > perfect for this kind of thing, if you look at the RFC, BTW.) Ouch, true--rule out %... > Still, why would you escape it? My shell will not take # as a > comment start if it is immediately after an alphanumeric character. Well, you just taught me something about bash I didn't know.... /me goes back to his hole with some more knowledge. Thanks, -- Inaky ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ia64 git pull 2005-04-22 2:06 ` Inaky Perez-Gonzalez @ 2005-04-22 3:30 ` David A. Wheeler 0 siblings, 0 replies; 4+ messages in thread From: David A. Wheeler @ 2005-04-22 3:30 UTC (permalink / raw) To: Inaky Perez-Gonzalez Cc: Petr Baudis, tony.luck, Linus Torvalds, linux-ia64, linux-kernel, git Petr Baudis <pasky@ucw.cz> writes: >>Still, why would you escape it? My shell will not take # as a >>comment start if it is immediately after an alphanumeric character. I guess there MIGHT be some command shell implementation that stupidly _DID_ accept "#" as a comment character, even immediately after an alphanumeric. If that's true, then using # there would be a pain for portability. But I think that's highly improbable. A quick peek at the Single Unix Specification as posted by the Open Group seems to say that, according to the standards, that's NOT okay: http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02 Basically, the command shell is supposed to tokenize, and "#" only means comment if it's at the beginning of a token. And as far as I can tell, it's not an issue in practice either. I did a few quick tests on Fedora Core 3 and OpenBSD. On Fedora Core 3, I can say that bash, ash & csh all do NOT consider "#" as a comment start if an alpha precedes it. The same is true for OpenBSD /bin/sh, /bin/csh, and /bin/rksh. If such different shells do the same thing (this stuff isn't even legal C-shell text!), it's likely others do too. --- David A. Wheeler ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-22 3:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <200504212042.j3LKgng04318@unix-os.sc.intel.com> [not found] ` <Pine.LNX.4.58.0504211403080.2344@ppc970.osdl.org> [not found] ` <200504212155.j3LLtho04949@unix-os.sc.intel.com> [not found] ` <Pine.LNX.4.58.0504211520250.2344@ppc970.osdl.org> 2005-04-21 22:58 ` ia64 git pull Petr Baudis [not found] ` <200504212301.j3LN1Do05507@unix-os.sc.intel.com> [not found] ` <20050422012546.GD1474@pasky.ji.cz> [not found] ` <17000.22515.170455.192374@sodium.jf.intel.com> 2005-04-22 1:53 ` Petr Baudis 2005-04-22 2:06 ` Inaky Perez-Gonzalez 2005-04-22 3:30 ` David A. Wheeler
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).