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

doc bug: update-ref --create-reflog also works with --stdin

From
Chris Jerdonek <chris.jerdonek@gmail.com>
Date
Apr 20, 2019, 01:01 UTC
Message-ID
<CAOTb1wc=qBmD4k4DH1bMckrYzc3ZzB=bBYDk7QUQWxKdtsXCHQ@mail.gmail.com>
This is to report a bug in the docs, or at least suggest an improvement.

The update-ref documentation says that --create-reflog can only be passed when providing a new ref to create and doesn't say it can also be used with --stdin:

'git update-ref' [-m <reason>] [--no-deref] (-d <ref> [<oldvalue>] | [--create-reflog] <ref> <newvalue> [<oldvalue>] | --stdin [-z])

from: https://github.com/git/git/blob/ffac537e6cbbf934b08745a378932722df287a53/Documentation/git-update-ref.txt#L11

My testing shows that it also works with --stdin, so it seems like it would help to document this.

Thanks, --Chris

Next: Junio C Hamano
Message 1 of 2 in “doc bug: update-ref --create-reflog also works with --stdin”
  1. Chris JerdonekApr 20, 2019
  2. Junio C HamanoApr 21, 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.