Skip to content

Commit 184c3b4

Browse files
committed
Merge branch 'jc/comment-style-fixes'
Rewrite //-comments to /* comments */ in files whose comments prevalently use the latter. * jc/comment-style-fixes: reftable/pq_test: comment style fix merge-ort.c: comment style fix builtin/worktree: comment style fixes
2 parents 92e69df + de65079 commit 184c3b4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

builtin/worktree.c

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

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

merge-ort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ static void apply_directory_rename_modifications(struct merge_options *opt,
26422642
oidcpy(&ci->stages[i].oid, null_oid());
26432643
}
26442644

2645-
// Now we want to focus on new_ci, so reassign ci to it
2645+
/* Now we want to focus on new_ci, so reassign ci to it. */
26462646
ci = new_ci;
26472647
}
26482648

reftable/pq_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void test_pq(void)
6060
if (last) {
6161
EXPECT(strcmp(last, rec->u.ref.refname) < 0);
6262
}
63-
// this is names[i], so don't dealloc.
63+
/* this is names[i], so don't dealloc. */
6464
last = rec->u.ref.refname;
6565
rec->u.ref.refname = NULL;
6666
reftable_record_release(rec);

0 commit comments

Comments
 (0)