Skip to content

Commit

Permalink
Merge branch 'rs/simplify-parsing-commit-tree-S'
Browse files Browse the repository at this point in the history
* rs/simplify-parsing-commit-tree-S:
  commit-tree: simplify parsing of option -S using skip_prefix()
  • Loading branch information
Junio C Hamano committed Jan 12, 2015
2 parents d61e790 + 8547e0f commit acddf49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builtin/commit-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
continue;
}

if (!memcmp(arg, "-S", 2)) {
sign_commit = arg + 2;
if (skip_prefix(arg, "-S", &sign_commit))
continue;
}

if (!strcmp(arg, "--no-gpg-sign")) {
sign_commit = NULL;
Expand Down

0 comments on commit acddf49

Please sign in to comment.