Automatically exclude hunks from the commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]