commit-tree: simplify parsing of option -S using skip_prefix()
PATCH 1/1 commit-tree: simplify parsing of option -S using skip_prefix()
Signed-off-by Rene Scharfe <[email protected]>
--- builtin/commit-tree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
builtin/commit-tree.c +1 -3
@@ -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 ;
Signature · 1 line
2.2.1
Quoted 4 lines · René Scharfe
Signed-off-by Rene Scharfe <[email protected]>--- builtin/commit-tree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by Jonathan Nieder <[email protected]>
Thanks.