git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Automatically exclude hunks from the commit
@ 2010-07-20  3:02 Joshua Jensen
  2010-07-20  5:17 ` Joshua Juran
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joshua Jensen @ 2010-07-20  3:02 UTC (permalink / raw)
  To: git@vger.kernel.org

  I have some files I update frequently where I have some normally 
commented out debug code purposely uncommented during development.  
Git's hunk-level staging saves the day.  I can stage everything but the 
debug code without issue.

This got me to thinking.  Is there a better way?  Is there a facility in 
Git where I could mark a hunk as 'permanently frozen unstaged'?  
Anything marked as such would never be staged for commit.  I could rest 
assured I would never accidentally commit my debug code, be it extra 
printfs or a development server or a password or so on.

Thanks for the help.

Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-20  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20  3:02 Automatically exclude hunks from the commit Joshua Jensen
2010-07-20  5:17 ` Joshua Juran
2010-07-20  5:36 ` Wincent Colaiuta
2010-07-20  9:26 ` Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).