From e1dc49bcdefd362e129c9ee3a85527b518f9b49d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 4 Apr 2009 11:59:55 -0500 Subject: git-repack: use non-dashed update-server-info Signed-off-by: Dan McGee Signed-off-by: Junio C Hamano diff --git a/git-repack.sh b/git-repack.sh index be6db5e..00c597e 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -181,5 +181,5 @@ fi case "$no_update_info" in t) : ;; -*) git-update-server-info ;; +*) git update-server-info ;; esac -- cgit v0.10.2-6-g49f6 From 4f6a32f8af9cceaf0c8ccf6d00d2f100dab5a6db Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 3 Apr 2009 15:28:56 -0400 Subject: commit: abort commit if interactive add failed Previously we ignored the result of calling add_interactive, which meant that if an error occurred we simply committed whatever happened to be in the index. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano diff --git a/builtin-commit.c b/builtin-commit.c index 6cbdd55..fde7b89 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix) const char **pathspec = NULL; if (interactive) { - interactive_add(argc, argv, prefix); + if (interactive_add(argc, argv, prefix) != 0) + die("interactive add failed"); if (read_cache() < 0) die("index file corrupt"); commit_style = COMMIT_AS_IS; -- cgit v0.10.2-6-g49f6 From 38b7ccbe8c6615c709a4a69071c46593a1494952 Mon Sep 17 00:00:00 2001 From: Markus Heidelberg Date: Sat, 4 Apr 2009 12:35:22 +0200 Subject: doc/git-pack-refs: fix two grammar issues Signed-off-by: Markus Heidelberg Signed-off-by: Junio C Hamano diff --git a/Documentation/git-pack-refs.txt b/Documentation/git-pack-refs.txt index a5244d3..1ee99c2 100644 --- a/Documentation/git-pack-refs.txt +++ b/Documentation/git-pack-refs.txt @@ -26,7 +26,7 @@ problem by stashing the refs in a single file, traditional `$GIT_DIR/refs` hierarchy, it is looked up in this file and used if found. -Subsequent updates to branches always creates new file under +Subsequent updates to branches always create new files under `$GIT_DIR/refs` hierarchy. A recommended practice to deal with a repository with too many @@ -35,7 +35,7 @@ occasionally run `git pack-refs \--prune`. Tags are by definition stationary and are not expected to change. Branch heads will be packed with the initial `pack-refs --all`, but only the currently active branch heads will become unpacked, -and next `pack-refs` (without `--all`) will leave them +and the next `pack-refs` (without `--all`) will leave them unpacked. -- cgit v0.10.2-6-g49f6 From 835a3eea3e18695e29b1d4c3adca37d1caaa16ef Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 31 Mar 2009 17:50:12 +0200 Subject: git submodule: fix usage line Actually, you have to set the -b option after the add command. Signed-off-by: Julien Danjou Signed-off-by: Junio C Hamano diff --git a/git-submodule.sh b/git-submodule.sh index 0a27232..7c2e060 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -5,7 +5,7 @@ # Copyright (c) 2007 Lars Hjemli USAGE="[--quiet] [--cached] \ -[add [-b branch] ]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit ] []] \ +[add [-b branch] ]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit ] []] \ [--] [...]|[foreach ]|[sync [--] [...]]" OPTIONS_SPEC= . git-sh-setup -- cgit v0.10.2-6-g49f6