Re: git-add has gone lstat() mad

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

 



Andy Parkins <andyparkins@xxxxxxxxx> writes:

> I can't see why git feels that it has to recurse the entire subtree.  It 
> seems to be something to do with the gitignore stuff.  Surely there is 
> no need to use a recursive search when no directories are being added?

I do not think this is anything new.

> If git-add were given
>
>  file1
>  dir1/file2
>  dir2/dir3/file3

The thing is, you are not giving the above three pathnames,
although you might think you are.

You are giving three path *patterns* and asking git-add: "please
run 'git ls-files --others' and add the ones that match these
patterns".

You can teach it to detect cases where you do not have wildcard
(that is both shell glob wildcard and directory names; the
latter means "grab everything in that named directory") to limit
the set of directories to descend into.

Patches are welcome, but applying them to 'master' needs to wait
post 1.5.1.

-
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]