Re: [RFC] status - don't show gitdir

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

 



On Thu, Jun 30, 2011 at 6:46 PM, Fredrik Gustafsson <iveqy@xxxxxxxxx> wrote:
> When gitdir is inside the working dir, don't show it as a untracked
> directory.

read_directory_recursive() and friends ignore .git by default. I think
if you want to ignore the directory that .git file points to, you
should update there. I'm too lazy to check the code (my
read_directory_recursive is heavily modified currently), but I think
it does not check file type for .git entries now.

But if we step back a bit, why do you want git to automatically ignore
dirs that .git file points to? .git files are used to save real repo
somewhere safe, e.g. outside working directory. You do not handle
another case in your patch, where .git is a real symlink. In both
cases, it's not hard to add "real-git-dir" to .git/info/excludes.
-- 
Duy
--
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]