summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92c62a3)
raw | patch | inline | side by side (parent: 92c62a3)
author | Thomas Rast <trast@student.ethz.ch> | |
Tue, 20 Dec 2011 21:42:39 +0000 (22:42 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Dec 2011 22:01:41 +0000 (14:01 -0800) |
92c62a3 (Porcelain scripts: Rewrite cryptic "needs update" error
message, 2010-10-19) refactored git's own checking to a function in
git-sh-setup. This is a very useful thing for script writers, so
document it.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
message, 2010-10-19) refactored git's own checking to a function in
git-sh-setup. This is a very useful thing for script writers, so
document it.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-sh-setup.txt | patch | blob | history |
index 3da241304b0d2fdaa376bca740beb024a36b2cb6..76856633a15b958a159de371ca2e0a9e0fbfcdba 100644 (file)
if so. Used by scripts that require working tree
(e.g. `checkout`).
+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.