path: root/contrib/
AgeCommit message (Collapse)Author
2017-04-17Merge branch 'jc/bs-t-is-not-a-tab-for-sed'Junio C Hamano
Code cleanup. * jc/bs-t-is-not-a-tab-for-sed: contrib/ do not write \t for HT in sed scripts
2017-04-01contrib/ do not write \t for HT in sed scriptsJunio C Hamano
Just like we did in 0d1d6e50 ("t/t7003: replace \t with literal tab in sed expression", 2010-08-12), avoid writing "\t" for HT in sed scripts, which is not portable. Signed-off-by: Junio C Hamano <> add variable to use the stuck-long modeNicolas Vigier
If the variable $OPTIONS_STUCKLONG is not empty, then rev-parse option parsing is done in --stuck-long mode. Signed-off-by: Nicolas Vigier <> Signed-off-by: brian m. carlson <> Signed-off-by: Junio C Hamano <>
2010-05-01request-pull: protect against OPTIONS_KEEPDASHDASH from environmentJonathan Nieder
Like most git commands, request-pull supports a -- delimiter to allow callers to pass arguments that would otherwise be treated as an option afterwards. The internal OPTIONS_KEEPDASHDASH variable is passed empty to git-sh-setup to indicate that request-pull itself does not care about the position of the -- delimiter. But if the user has that variable in her environment, request-pull will see the “--” and fail. Empty it explicitly to guard against this. While at it, make the corresponding fix to git-resurrect, too (all other scripts in git.git already protect themselves). Acked-by: Thomas Rast <> Acked-by: Miklos Vajna <> Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
2009-02-04contrib git-resurrect: find traces of a branch name and resurrect itThomas Rast
Add a tool ' <branch>' that tries to find traces of the <branch> in the HEAD reflog and, optionally, all merge commits in the repository. It can then resurrect the branch, pointing it at the most recent of all candidate commits found. Signed-off-by: Thomas Rast <> Signed-off-by: Junio C Hamano <>