Skip to content

Commit a1cd814

Browse files
committed
Merge branch 'jc/comment-style-fixes' into maint-2.43
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 5071cb7 + de65079 commit a1cd814

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
@@ -851,21 +851,21 @@ static int add(int ac, const char **av, const char *prefix)
851851
const char *s = worktree_basename(path, &n);
852852
new_branch = xstrndup(s, n);
853853
} else if (opts.orphan) {
854-
// No-op
854+
; /* no-op */
855855
} else if (opts.detach) {
856-
// Check HEAD
856+
/* Check HEAD */
857857
if (!strcmp(branch, "HEAD"))
858858
can_use_local_refs(&opts);
859859
} else if (ac < 2 && new_branch) {
860-
// DWIM: Infer --orphan when repo has no refs.
860+
/* DWIM: Infer --orphan when repo has no refs. */
861861
opts.orphan = dwim_orphan(&opts, !!opt_track, 0);
862862
} else if (ac < 2) {
863-
// DWIM: Guess branch name from path.
863+
/* DWIM: Guess branch name from path. */
864864
const char *s = dwim_branch(path, &new_branch);
865865
if (s)
866866
branch = s;
867867

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

merge-ort.c

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

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

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)