Re: "git add $ignored_file" fail

From: Sean <seanlkml@sympatico.ca>
Date: 2006-05-18 05:39:03
On Wed, 17 May 2006 15:23:06 -0400
Pavel Roskin <proski@gnu.org> wrote:

> Can we apply the ignore rules to the directories but not the files?
> 
> This way, "git-add *" would add all files (rarely a good idea), whereas 
> "git-add ." would respect the ignore rules.
> 
> Kludgy as it is, this approach would generally produce more expected
> results than others.  If you let the shell expand the pattern, expect
> all junk to be added.  If you let git expand the pattern, expect it to
> adhere to the ignore rules. 

Shouldn't git just always respect the ignore rules?  Forcing someone to
remove a file from the .gitignore or employ the other work around
mentioned earlier doesn't seem too bad.  How often are people adding
files that are explicitly ignored?

Sean
-
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
Received on Thu May 18 05:45:59 2006

This archive was generated by hypermail 2.1.8 : 2006-05-18 05:46:22 EST