git-extras icon indicating copy to clipboard operation
git-extras copied to clipboard

Added ignore through assume unchanged.

Open nickl- opened this issue 13 years ago • 6 comments

As it turns out we have yet another scenario for wanting git to ignore something i.e when we made changes to a file that is already being tracked ex. database configuration for a local db, and we don't want git to report or accidentally add the changes to a commit we use:

$ git update-index --assume-unchanged

Added to git-ignore for completion...

When git is already tracking a file adding it to gitignore wont do anything but you can flag it assume-unchanged through update-index. Added -c, --changes attribute to ignore space delimited list of files. Added -a, --all-changes to flag all the currently tracked files that have been modified to be assumed unchanged. Better verbosity and better output current configurations. Added output list of currently configured assume-unchanged files. Updated documentation and fixed a typo.

Njoy! =)

nickl- avatar Aug 13 '12 20:08 nickl-

Wow adopter overload!

@visionmedia TJ, looks like I will have to come in and give you a hand again. Would that help if we get rid of a bunch of issues? When would suite you to review I'll do the merge and normalization.... this weekend?

nickl- avatar Nov 16 '12 14:11 nickl-

@nickl- Willing to progress on this?

hemanth avatar Jul 09 '14 05:07 hemanth