summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5b4250)
raw | patch | inline | side by side (parent: b5b4250)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 7 Jun 2005 22:20:39 +0000 (15:20 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 7 Jun 2005 22:20:39 +0000 (15:20 -0700) |
Also, documetn the "-u" in the usage string.
read-tree.c | patch | blob | history |
diff --git a/read-tree.c b/read-tree.c
index cf6d28e2c9ee689a5ea49d715bc56773b266efa8..fbd0da0ebdc5c523b7f35399a39a3b8efd373112 100644 (file)
--- a/read-tree.c
+++ b/read-tree.c
check_updates(active_cache, active_nr);
}
-static char *read_tree_usage = "git-read-tree (<sha> | -m <sha1> [<sha2> [<sha3>]])";
+static char *read_tree_usage = "git-read-tree (<sha> | -m [-u] <sha1> [<sha2> [<sha3>]])";
static struct cache_file cache_file;
die("failed to unpack tree object %s", arg);
stage++;
}
+ if (update && !merge)
+ usage(read_tree_usage);
if (merge) {
static const merge_fn_t merge_function[] = {
[1] = oneway_merge,