Skip to content

Commit 777f783

Browse files
committed
builtin/worktree: comment style fixes
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 564d025 commit 777f783

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/worktree.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -850,21 +850,21 @@ static int add(int ac, const char **av, const char *prefix)
850850
const char *s = worktree_basename(path, &n);
851851
new_branch = xstrndup(s, n);
852852
} else if (opts.orphan) {
853-
// No-op
853+
; /* no-op */
854854
} else if (opts.detach) {
855-
// Check HEAD
855+
/* Check HEAD */
856856
if (!strcmp(branch, "HEAD"))
857857
can_use_local_refs(&opts);
858858
} else if (ac < 2 && new_branch) {
859-
// DWIM: Infer --orphan when repo has no refs.
859+
/* DWIM: Infer --orphan when repo has no refs. */
860860
opts.orphan = dwim_orphan(&opts, !!opt_track, 0);
861861
} else if (ac < 2) {
862-
// DWIM: Guess branch name from path.
862+
/* DWIM: Guess branch name from path. */
863863
const char *s = dwim_branch(path, &new_branch);
864864
if (s)
865865
branch = s;
866866

867-
// DWIM: Infer --orphan when repo has no refs.
867+
/* DWIM: Infer --orphan when repo has no refs. */
868868
opts.orphan = (!s) && dwim_orphan(&opts, !!opt_track, 1);
869869
} else if (ac == 2) {
870870
struct object_id oid;

0 commit comments

Comments
 (0)