Signed-off-by: aum2357 <[email protected]>
PATCH 1/1 Signed-off-by: aum2357 <[email protected]>
diff: use conventional comparison order
Replace 0 <= addremove_explicit with addremove_explicit >= 0 to follow the common coding style where variables appear on the left side of comparisons.
--- builtin/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/add.c +1 -1
@@ -432,7 +432,7 @@ int cmd_add(int argc, argc--; argv++; -if (0 <= addremove_explicit) +if ( addremove_explicit >=0 ) addremove = addremove_explicit;else if (take_worktree_changes &&ADDREMOVE_DEFAULT ) addremove =0 ;/* "-u" was given but not "-A" */
Signature · 1 line
2.53.0