Paul Mackerras <paulus@samba.org> writes:$ rev-parse --no-revs --no-flags gitk -- gitk $ rev-parse --no-revs --no-flags -- gitk should give you the path "gitk", while $ rev-parse --revs-only --no-flags gitk -- gitk $ rev-parse --revs-only --no-flags gitk -- should give you the revision (i.e. branch name) "gitk", I think. But it is not well defined what it should do upon $ rev-parse --no-flags gitk $ rev-parse gitk Currently they treat "gitk" as a ref. On the other hand, as you said: $ rev-list gitk would error out without leading or traiing -- to disambiguate. So you are right that they behave differently. It might be an improvement to make rev-parse require leading or trailing -- in such a case, but I haven't thought through the ramifications of such a change. Quite a lot of existing users expect "rev-parse foo" to favor a ref "foo" over a file "foo" and give its object name. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Bron Gondwana | BUG: mmapfile/writev spurious zero bytes (x86_64/not i386, bisected, reproducable) |
| Greg Kroah-Hartman | [PATCH 012/196] nozomi driver |
| Linus Torvalds | Re: Slow DOWN, please!!! |
| J.C. Pizarro | Re: linux+glibc memory allocator, poor performance |
git: | |
| Andy Parkins | svn:externals using git submodules |
| Scott Chacon | [PATCH] add a 'pre-push' hook |
| Alan Larkin | fatal: Out of memory, malloc failed |
| Dmitry Kakurin | Re: [RFC] Convert builin-mailinfo.c to use The Better String Library. |
| Gavan Fantom | Re: sysctl knob to let sugid processes dump core (pr 15994) |
| Lord Isildur | Re: Fork bomb protection patch |
| Manuel Bouyer | scsi disks with "Medium Format Corrupted" |
| Matt Thomas | Re: fsync performance hit on 1.6.1 |
| Hari | DHCP question |
| Nick Guenther | Re: When will OpenBSD support UTF8? |
| Christian Weisgerber | Re: libiconv problem |
| Vijay Sankar | taskjuggler problems |
