From: Eric Sunshine <email@example.com> To: firstname.lastname@example.org Cc: "Pratyush Yadav" <email@example.com>, "SZEDER Gábor" <firstname.lastname@example.org>, "Junio C Hamano" <email@example.com>, "Eric Sunshine" <firstname.lastname@example.org> Subject: [PATCH 0/3] worktree: add -d shorthand for --detach & improve documentation Date: Fri, 4 Sep 2020 03:07:00 -0400 [thread overview] Message-ID: <email@example.com> (raw) This series grew directly out of suggestions proposed in . Its purpose is twofold. First, it brings git-worktree in line with the other "checkout a branch" commands git-switch and git-checkout by teaching it -d as shorthand for --detach (which those other commands already understand). Second, it enhances git-worktree documentation to emphasize that `git worktree add <path>` creates a new branch by default, and to discuss branch-based vs. throwaway worktrees, which may help newcomers avoid creating unwanted new branches without realizing they are doing, and later wondering why `git branch --list` shows branches they did not intentionally create. There was an earlier attempt by Pratyush to add -d as shorthand for --detach (though it did not enhance git-worktree documentation as the current patch series does), however, that patch was never re-rolled after reviewers pushed back on a few of the changes it made. : https://lore.kernel.org/git/CAPig+cQmqKiYWDWFH5eK2S6XPOi2t2+8Oas8yZa8R=bKLym3wQ@mail.gmail.com/ : https://firstname.lastname@example.org/ Eric Sunshine (3): git-checkout.txt: document -d short option for --detach worktree: add -d short option for --detach git-worktree.txt: discuss branch-based vs. throwaway worktrees Documentation/git-checkout.txt | 1 + Documentation/git-worktree.txt | 13 +++++++++++++ builtin/worktree.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) -- 184.108.40.2068.gf4bc123cb7
next reply other threads:[~2020-09-04 7:08 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-04 7:07 Eric Sunshine [this message] 2020-09-04 7:07 ` [PATCH 1/3] git-checkout.txt: document -d short option for --detach Eric Sunshine 2020-09-04 7:07 ` [PATCH 2/3] worktree: add " Eric Sunshine 2020-09-04 7:07 ` [PATCH 3/3] git-worktree.txt: discuss branch-based vs. throwaway worktrees Eric Sunshine 2020-09-06 21:58 ` [PATCH 0/3] worktree: add -d shorthand for --detach & improve documentation Junio C Hamano 2020-09-07 0:02 ` [PATCH v2 0/3] worktree: teach `add` -d " Eric Sunshine 2020-09-07 0:02 ` [PATCH v2 1/3] git-checkout.txt: document -d short option for --detach Eric Sunshine 2020-09-07 0:02 ` [PATCH v2 2/3] worktree: teach `add` to recognize -d as shorthand " Eric Sunshine 2020-09-07 0:02 ` [PATCH v2 3/3] git-worktree.txt: discuss branch-based vs. throwaway worktrees Eric Sunshine
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: http://vger.kernel.org/majordomo-info.html * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: [PATCH 0/3] worktree: add -d shorthand for --detach & improve documentation' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://80x24.org/mirrors/git.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).