Last active
April 18, 2024 06:46
-
-
Save hraban/10c7f72ba6ec55247f2d to your computer and use it in GitHub Desktop.
Prevent accidentally committing debug code in Git
π indeed on windows (wsl debian), but I guess my issue was the misunderstanding of what templatedir
actually is. Indeed I was looking for it to work on an already cloned repo. I guess I had missed this comment π
well, maybe someone will find the core.hooksPath
comment useful π€·ββοΈ
why there is symbol d in regex ^[+d].*NOCOMMIT ? In which cases diff can return lines starting with d?
In case you want to mark an entire file as NOCOMMIT you can put it in the file name. The d catches that.
β¦On Sun, Feb 11, 2024 at 6:09 AM, Stas Pozdnyakov ***@***.***(mailto:On Sun, Feb 11, 2024 at 6:09 AM, Stas Pozdnyakov <<a href=)> wrote:
@netslow commented on this gist.
---------------------------------------------------------------
why there is symbol d in regex ^[+d].*NOCOMMIT ?
β
Reply to this email directly, [view it on GitHub](https://gist.github.com/hraban/10c7f72ba6ec55247f2d#gistcomment-4890195) or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AABBU7CUXJROLE5FA6LDH4TYTCRGLBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVAZDEMJYGU2TIMFHORZGSZ3HMVZKMY3SMVQXIZI).
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for [iOS](https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or [Android](https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
ok, thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah now I understand what you meant, you had a specific problem getting it to actually work at all. Interesting, are you on Windows? What do you think the problem could be? Just for completeness' sake: the templatedir only applies to new repositories, not to existing ones. Might that have been the problem.
Either way, it's a gist, all comments welcome :P it's 3 lines of bash--not exactly ffmpeg π