aboutsummaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-04-10 13:33:08 +0200
committerJunio C Hamano <gitster@pobox.com>2008-04-11 23:03:50 -0700
commit3c5283f8b19aaba3a6105fa486cabe4d0ca48009 (patch)
treeb8ab7a0a8e4ea76d04abce2ecdbb5efc24b4a4f7 /builtin-commit.c
parent71349732c53a4c1b64729628b04db7b3c3f7606d (diff)
downloadgit-3c5283f8b19aaba3a6105fa486cabe4d0ca48009.tar.gz
git-3c5283f8b19aaba3a6105fa486cabe4d0ca48009.tar.xz
builtin-commit.c: Remove a redundant assignment.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 660a3458f..e3adfdf6d 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -745,10 +745,8 @@ static int parse_and_validate_options(int argc, const char *argv[],
die("No paths with --include/--only does not make sense.");
if (argc == 0 && only && amend)
only_include_assumed = "Clever... amending the last one with dirty index.";
- if (argc > 0 && !also && !only) {
+ if (argc > 0 && !also && !only)
only_include_assumed = "Explicit paths specified without -i nor -o; assuming --only paths...";
- also = 0;
- }
if (!cleanup_arg || !strcmp(cleanup_arg, "default"))
cleanup_mode = use_editor ? CLEANUP_ALL : CLEANUP_SPACE;
else if (!strcmp(cleanup_arg, "verbatim"))