summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c64e79)
raw | patch | inline | side by side (parent: 1c64e79)
author | Josh Micich <josh.micich@gmail.com> | |
Thu, 14 May 2009 19:46:03 +0000 (12:46 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 May 2009 17:25:49 +0000 (10:25 -0700) |
Update usage message in builtin-mktree.c to include '--missing'. Do the
same to man page and clarify that the input does not have to be sorted.
Signed-off-by: Josh Micich <josh.micich@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
same to man page and clarify that the input does not have to be sorted.
Signed-off-by: Josh Micich <josh.micich@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-mktree.txt | patch | blob | history | |
builtin-mktree.c | patch | blob | history |
index af19f06ed738bdecc7ab9a72a5c9a216b816f4c2..7336f48bd1e90dabf8e735dc27023b65309e1aef 100644 (file)
SYNOPSIS
--------
-'git mktree' [-z]
+'git mktree' [-z] [--missing]
DESCRIPTION
-----------
-Reads standard input in non-recursive `ls-tree` output format,
-and creates a tree object. The object name of the tree object
+Reads standard input in non-recursive `ls-tree` output format, and creates
+a tree object. The order of the tree entries is normalised by mktree so
+pre-sorting the input is not required. The object name of the tree object
built is written to the standard output.
OPTIONS
-z::
Read the NUL-terminated `ls-tree -z` output instead.
+--missing::
+ Allow missing objects. The default behaviour (without this option)
+ is to verify that each tree entry's sha1 identifies an existing
+ object. This option has no effect on the treatment of gitlink entries
+ (aka "submodules") which are always allowed to be missing.
+
Author
------
Written by Junio C Hamano <gitster@pobox.com>
diff --git a/builtin-mktree.c b/builtin-mktree.c
index e1c9a2701adf4e692385336a764003b28134067d..5ff04753b756a72c521d6a95321417812e90e865 100644 (file)
--- a/builtin-mktree.c
+++ b/builtin-mktree.c
}
static const char *mktree_usage[] = {
- "git mktree [-z]",
+ "git mktree [-z] [--missing]",
NULL
};