1
0
mirror of https://github.com/github/gitignore synced 2024-11-29 23:24:21 +01:00

fix Generated_Code entry in CSharp.gitignore

The existing entry for Generated_Code (with a space and then a comment afterwards) wasn't working for me (at least with msysgit version 1.7.11.msysgit.1).

Once I put the comment on a separate line and removed the trailing space after 'Generated_Code', it worked fine.

The gitignore(5) man page says a line starting with # is treated as a comment, but doesn't mention what # does if it's elsewhere in the line, so based on the previous behavior and trying a line of "Generated_Code#foo", it appears that the # and the rest of the line isn't ignored, so we need to move the comment to its own line that starts with #

http://www.kernel.org/pub/software/scm/git/docs/gitignore.html
This commit is contained in:
James Manning 2012-11-08 11:39:26 -05:00
parent 747efedec0
commit a3c3c1ff4c

View File

@ -99,7 +99,8 @@ ClientBin
[Ss]tyle[Cc]op.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects
# added for RIA/Silverlight projects
Generated_Code
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)