summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Josh Micich <josh.micich@gmail.com>2009-05-14 12:51:15 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-16 10:28:59 -0700
commitf1cf2d8b1467b5973f249703b31e709eaede97ad (patch)
treedd7ea63492ebacded988b6cdb2c1cd6800852029 /Documentation
parentmktree --missing: updated usage message and man page (diff)
downloadtgif-f1cf2d8b1467b5973f249703b31e709eaede97ad.tar.xz
mktree --batch: build more than one tree object
This option works in a similar way to the '--batch' option of 'git cat-file'. It enables creation of many tree objects with a single process. The change was motivated by performance considerations in applications that need to create many tree objects. A non-rigorous test showed tree creation times improved from (roughly) 200ms to 50ms. Signed-off-by: Josh Micich <josh.micich@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-mktree.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-mktree.txt b/Documentation/git-mktree.txt
index 7336f48bd1..81e3326772 100644
--- a/Documentation/git-mktree.txt
+++ b/Documentation/git-mktree.txt
@@ -8,7 +8,7 @@ git-mktree - Build a tree-object from ls-tree formatted text
SYNOPSIS
--------
-'git mktree' [-z] [--missing]
+'git mktree' [-z] [--missing] [--batch]
DESCRIPTION
-----------
@@ -28,6 +28,12 @@ OPTIONS
object. This option has no effect on the treatment of gitlink entries
(aka "submodules") which are always allowed to be missing.
+--batch::
+ Allow building of more than one tree object before exiting. Each
+ tree is separated by as single blank line. The final new-line is
+ optional. Note - if the '-z' option is used, lines are terminated
+ with NUL.
+
Author
------
Written by Junio C Hamano <gitster@pobox.com>