public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* doc bug: update-ref --create-reflog also works with --stdin
@ 2019-04-20  1:01 Chris Jerdonek
  2019-04-21  5:13 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Jerdonek @ 2019-04-20  1:01 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: doc bug: update-ref --create-reflog also works with --stdin
  2019-04-20  1:01 doc bug: update-ref --create-reflog also works with --stdin Chris Jerdonek
@ 2019-04-21  5:13 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2019-04-21  5:13 UTC (permalink / raw)
  To: Chris Jerdonek; +Cc: git

Chris Jerdonek <chris.jerdonek@gmail•com> writes:

> 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:

True.  It instead should say that it only makes sense when creating
a new ref; it does not matter where the names of new refs come from.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-21  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-20  1:01 doc bug: update-ref --create-reflog also works with --stdin Chris Jerdonek
2019-04-21  5:13 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox