git - Is there a way to have a patch that is never commited, only changes the working copy? -
i modify test comment in code:
- /*simplemonitor monitor = new simplemonitor(); - machine.attachmonitor(monitor);*/ + simplemonitor monitor = new simplemonitor(); + machine.attachmonitor(monitor); that is, when building locally enable simplemonitor, want checked in code maintain commented out. simplemonitor prints out verbose info going on internally in test cases.
of course of study can never add together alter commit.
is there way git can exclude change, when using 'git add together .' or 'git add together -a' , on, such git skip on change?
the thought delta sits on top of working re-create only. if there neat trick stash or using branch or else, please tell me it.
you declare file content filter driver ( 'clean' script) automatically, on checkin, comment right line. done in .gitattributes file: see instance "does .gitignore have equivalent version controlled files?".
(image "customizing git attributes" git book)
git config filter.<filtername>.clean ./<filterscript> you can have <filterscript> versioned in repo.
git
No comments:
Post a Comment