summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f07a524)
raw | patch | inline | side by side (parent: f07a524)
author | Chris Shoemaker <c.shoemaker@cox.net> | |
Fri, 28 Oct 2005 17:04:49 +0000 (13:04 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 28 Oct 2005 20:37:38 +0000 (13:37 -0700) |
Update docs and usages regarding '-r' recursive option for git-diff-tree.
Remove '-r' from common diff options, mention it only for git-diff-tree.
Remove one extraneous use of '-r' with git-diff-files in get-merge.sh.
Sync the synopsis and usage string for git-diff-tree.
Signed-off-by: Chris Shoemaker <c.shoemaker at cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Remove '-r' from common diff options, mention it only for git-diff-tree.
Remove one extraneous use of '-r' with git-diff-files in get-merge.sh.
Sync the synopsis and usage string for git-diff-tree.
Signed-off-by: Chris Shoemaker <c.shoemaker at cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-diff-tree.txt | patch | blob | history | |
diff-tree.c | patch | blob | history | |
diff.h | patch | blob | history | |
git-merge.sh | patch | blob | history |
index dcfb9e18c7041c005bfce0671bfda8b2ac31c656..f57c8d0d8191dae8be8db930ef8b38ddc9c42623 100644 (file)
SYNOPSIS
--------
-'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [<common diff options>] <tree-ish> [<tree-ish>] [<path>...]
+'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [-r] [--root] [<common diff options>] <tree-ish> [<tree-ish>] [<path>...]
DESCRIPTION
-----------
Note that this parameter does not provide any wildcard or regexp
features.
+-r::
+ recurse into sub-trees
+
-t::
show tree entry itself as well as subtrees. Implies -r.
diff --git a/diff-tree.c b/diff-tree.c
index 382011a2a6d1a701aeb1104991d9abbfcb5b73df..ed323d877cad1e78e08f84c1e9ee1ebb09f05d91 100644 (file)
--- a/diff-tree.c
+++ b/diff-tree.c
}
static const char diff_tree_usage[] =
-"git-diff-tree [--stdin] [-m] [-s] [-v] [--pretty] [-t] "
-"[<common diff options>] <tree-ish> <tree-ish>"
+"git-diff-tree [--stdin] [-m] [-s] [-v] [--pretty] [-t] [-r] [--root] "
+"[<common diff options>] <tree-ish> [<tree-ish>] [<path>...]\n"
+" -r diff recursively\n"
+" --root include the initial commit as diff against /dev/null\n"
COMMON_DIFF_OPTIONS_HELP;
int main(int argc, const char **argv)
index 51155479a46857ee03aa5f5e005abdad63db5495..12590791cbefe8717891365b6d417f60c51f684f 100644 (file)
--- a/diff.h
+++ b/diff.h
#define COMMON_DIFF_OPTIONS_HELP \
"\ncommon diff options:\n" \
-" -r diff recursively (only meaningful in diff-tree)\n" \
" -z output diff-raw with lines terminated with NUL.\n" \
" -p output patch format.\n" \
" -u synonym for -p.\n" \
diff --git a/git-merge.sh b/git-merge.sh
index 3457a96cfd7a27ae4dffcf5d3f1ff2f9568bd83d..6ad96ebfbb06697a0ad0875274022d9103b24d0a 100755 (executable)
--- a/git-merge.sh
+++ b/git-merge.sh
savestate() {
# Stash away any local modifications.
- git-diff-index -r -z --name-only $head |
+ git-diff-index -z --name-only $head |
cpio -0 -o >"$GIT_DIR/MERGE_SAVE"
}