diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-01-03 16:22:37 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-03 16:22:37 -0800 |
commit | db472bc17bfef8588e1a8f6ce873e5c6f4fa384a (patch) | |
tree | 2ec72b39a55b4e44bfabb02d164fe298999e8aef /git-sh-setup.txt | |
parent | 962f3a392a5b5c3f552a403dcc58d9f1eae2a930 (diff) | |
download | git-htmldocs-db472bc17bfef8588e1a8f6ce873e5c6f4fa384a.tar.gz |
Autogenerated HTML docs for v1.7.8.2-321-g4570a
Diffstat (limited to 'git-sh-setup.txt')
-rw-r--r-- | git-sh-setup.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/git-sh-setup.txt b/git-sh-setup.txt index a2f346ca7..5e5f1c896 100644 --- a/git-sh-setup.txt +++ b/git-sh-setup.txt @@ -68,6 +68,16 @@ require_work_tree_exists:: cd_to_toplevel, which is impossible to do if there is no working tree. +require_clean_work_tree <action> [<hint>]:: + checks that the working tree and index associated with the + repository have no uncommitted changes to tracked files. + Otherwise it emits an error message of the form `Cannot + <action>: <reason>. <hint>`, and dies. Example: ++ +---------------- +require_clean_work_tree rebase "Please commit or stash them." +---------------- + get_author_ident_from_commit:: outputs code for use with eval to set the GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL and GIT_AUTHOR_DATE variables for a given commit. |