Re: Relative ls-files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 23, 2011 at 7:42 AM, Michael J Gruber
<git@xxxxxxxxxxxxxxxxxxxx> wrote:
> Of course ":" has a meaning. "git show HEAD:" lists all files at the
> top-level of the tree at HEAD.

I got excited for a moment... now tested it and there isn't a recursive flag :-(

I've been pining for something easy and intuitive like git ls-files
<treeish>. You can do git ls-files --with-tree=<treeish> but I find it
very counter-intuitive.

Context: in some projects, I need to ask

 - is this file in branch foo?
 - has this file moved in branch foo?
 - what files with extension .zoo exist in branch foo?

and the answer is git ls-files --with-tree=<treeish> | grep <regex> .
But the --with-tree param is so counterintuitive to me that I read the
manpage, everytime.

Not sure whether the bug is in me or in git, but it sure hits some
cognitive dissonance.


m
-- 
 martin.langhoff@xxxxxxxxx
 martin@xxxxxxxxxx -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]