Re: [BUG] 'stg add FILE' when FILE is a symlink to dir adds dir contents

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

 



On 11/04/07, Tomash Brechko <tomash.brechko@xxxxxxxxx> wrote:
I have noticed that 'stg add FILE' works differently from 'git add
FILE' when file is a symlink to the directory: StGIT adds the contents
of dir, while GIT adds the symlink itself.

Thanks for this.

But curious, why does the code traverse the tree itself?  Why not to
give the file list directly to git-update-index, and let it decide
what files to add, and how?

Because this code was implemented almost 2 years ago when I don't
think git-update-index was able to scan directories. Never looked at
re-implementing it.

I also guess the code doesn't honor .gitignore.

It doesn't, unless git-update-index ignores the files passed on the
command line according to the .gitignore content.

Could 'names' list be passed to git-update-index directly?

Probably, I'll give it a try and see whether it breaks anything.

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