Re: [PATCH 0/1] Pass through the exit code of post-checkout

2019-10-10 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > To answer Jonathan's question, at long last, yes, it is useful. A hook is > not only an opportunity to run code at given points in Git's life cycle, but > also an opportunity to stop Git in its tracks. In general that is correct, and especially so

[PATCH 0/1] Pass through the exit code of post-checkout

2019-10-10 Thread Johannes Schindelin via GitGitGadget
This is my attempt to revive an old discussion [https://public-inbox.org/git/20180314003816.ge147...@aiede.svl.corp.google.com/] (related to this StackOverflow thread [https://stackoverflow.com/questions/25561485/git-rebase-i-with-squash-cannot-detach-head] ). > [...] is this the right behavior