git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/1] docs: update git-clone doc: refer to long options

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 28, 2019, 11:55 UTC
Message-ID
<nycvar.QRO.7.76.6.1906281352230.44@tvgsbejvaqbjf.bet>
In-Reply-To
<xmqqmui2aiwk.fsf@gitster-ct.c.googlers.com>
Hi,
On Thu, 27 Jun 2019, Junio C Hamano wrote:
Show 13 quoted lines
> "Quentin Nerden via GitGitGadget" <gitgitgadget@gmail.com> writes:
>
> > From: Quentin Nerden <quentin.nerden@gmail.com>
> >
> > To make the doc of git-clone easier to read,
> > refer to the long version of the options
> > (it is easier to guess what --verbose is doing than -v).
> >
> > Also:
> > put the short options first, to match the doc of git-add, git-commit, git-clean, git-branch...
>
> This "also" makes the patch unnecessarily harder to review.
> Splitting it into two patches would make it reviewable.
Good idea.

The easiest way I can think of would be to split by first undoing the commit via `git reset --hard HEAD^` (don't worry, the commit graph is still accessible via the reflog), then staging the parts of the patch that put the short options first: `git checkout -p HEAD@{1}`. After that is done, commit with a new commit message, then get the remainder of the changes via `git cherry-pick HEAD@{2}` (by now, the original commit is no longer `HEAD@{1}` because a new commit has been appended to the reflog).

Then force-push and submit a new iteration ;-)

Ciao, Johannes

Previous: Junio C HamanoNext: Quentin Nerden via GitGitGadget
Message 4 of 8 in “Update git-clone doc: refer to long option”
  1. 0/1 Update git-clone doc: refer to long optionQuentin Nerden via GitGitGadget, Jun 27, 2019
  2. 1/1 docs: update git-clone doc: refer to long optionsQuentin Nerden via GitGitGadget, Jun 27, 2019
  3. Junio C HamanoJun 27, 2019
  4. Johannes SchindelinJun 28, 2019
  5. 0/2 Update git-clone doc: refer to long form of the options and list short form of the options firstQuentin Nerden via GitGitGadget, Jul 2, 2019
  6. 1/2 docs: git-clone: refer to long form of optionsQuentin Nerden via GitGitGadget, Jul 2, 2019
  7. 2/2 docs: git-clone: list short form of options firstQuentin Nerden via GitGitGadget, Jul 2, 2019
  8. Junio C HamanoJul 2, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.