builtin/worktree: comment style fixes

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 29, 2024 at 12:28 UTC 777f7838415f6e83c350a39b8119e38794a04739
1 file changed +5 -5
builtin/worktree.c
+5 -5
@@ -850,21 +850,21 @@ static int add(int ac, const char **av, const char *prefix)
850 const char *s = worktree_basename(path, &n);
851 new_branch = xstrndup(s, n);
852 } else if (opts.orphan) {
853 - // No-op
853 + ; /* no-op */
854 } else if (opts.detach) {
855 - // Check HEAD
855 + /* Check HEAD */
856 if (!strcmp(branch, "HEAD"))
857 can_use_local_refs(&opts);
858 } else if (ac < 2 && new_branch) {
859 - // DWIM: Infer --orphan when repo has no refs.
859 + /* DWIM: Infer --orphan when repo has no refs. */
860 opts.orphan = dwim_orphan(&opts, !!opt_track, 0);
861 } else if (ac < 2) {
862 - // DWIM: Guess branch name from path.
862 + /* DWIM: Guess branch name from path. */
863 const char *s = dwim_branch(path, &new_branch);
864 if (s)
865 branch = s;
866
867 - // DWIM: Infer --orphan when repo has no refs.
867 + /* DWIM: Infer --orphan when repo has no refs. */
868 opts.orphan = (!s) && dwim_orphan(&opts, !!opt_track, 1);
869 } else if (ac == 2) {
870 struct object_id oid;