Skip to content

Commit 3c5283f

Browse files
Johannes Sixtgitster
authored andcommitted
builtin-commit.c: Remove a redundant assignment.
Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7134973 commit 3c5283f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

builtin-commit.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,10 +745,8 @@ static int parse_and_validate_options(int argc, const char *argv[],
745745
die("No paths with --include/--only does not make sense.");
746746
if (argc == 0 && only && amend)
747747
only_include_assumed = "Clever... amending the last one with dirty index.";
748-
if (argc > 0 && !also && !only) {
748+
if (argc > 0 && !also && !only)
749749
only_include_assumed = "Explicit paths specified without -i nor -o; assuming --only paths...";
750-
also = 0;
751-
}
752750
if (!cleanup_arg || !strcmp(cleanup_arg, "default"))
753751
cleanup_mode = use_editor ? CLEANUP_ALL : CLEANUP_SPACE;
754752
else if (!strcmp(cleanup_arg, "verbatim"))

0 commit comments

Comments
 (0)