{"thread":{"id":"50957","subject":"doc bug: update-ref --create-reflog also works with --stdin","startedAt":"2019-04-20T01:03:59Z","lastAt":"2019-04-21T05:35:09Z","messageCount":2,"participants":["Chris Jerdonek","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"374168","messageId":"CAOTb1wc=qBmD4k4DH1bMckrYzc3ZzB=bBYDk7QUQWxKdtsXCHQ@mail.gmail.com","threadId":"50957","inReplyTo":null,"subject":"doc bug: update-ref --create-reflog also works with --stdin","fromName":"Chris Jerdonek","fromEmail":"chris.jerdonek@gmail.com","sentAt":"2019-04-20T01:01:12Z","receivedAt":"2019-04-20T01:03:59Z","isPatch":false,"sender":{"key":"chris.jerdonek@gmail.com","avatar":"https://gravatar.com/avatar/86b2cff752baeaabcfaf26ff30fd8f74c5caf8657fdb7990dc3c787d542f26a3?d=mp&s=160"},"body":"This is to report a bug in the docs, or at least suggest an improvement.\n\nThe update-ref documentation says that --create-reflog can only be\npassed when providing a new ref to create and doesn't say it can also\nbe used with --stdin:\n\n'git update-ref' [-m <reason>] [--no-deref] (-d <ref> [<oldvalue>] |\n[--create-reflog] <ref> <newvalue> [<oldvalue>] | --stdin [-z])\n\nfrom: https://github.com/git/git/blob/ffac537e6cbbf934b08745a378932722df287a53/Documentation/git-update-ref.txt#L11\n\nMy testing shows that it also works with --stdin, so it seems like it\nwould help to document this.\n\nThanks,\n--Chris\n"},{"id":"374182","messageId":"xmqqlg04c54c.fsf@gitster-ct.c.googlers.com","threadId":"50957","inReplyTo":"CAOTb1wc=qBmD4k4DH1bMckrYzc3ZzB=bBYDk7QUQWxKdtsXCHQ@mail.gmail.com","subject":"Re: doc bug: update-ref --create-reflog also works with --stdin","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2019-04-21T05:13:55Z","receivedAt":"2019-04-21T05:35:09Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Chris Jerdonek <chris.jerdonek@gmail.com> writes:\n\n> The update-ref documentation says that --create-reflog can only be\n> passed when providing a new ref to create and doesn't say it can also\n> be used with --stdin:\n\nTrue.  It instead should say that it only makes sense when creating\na new ref; it does not matter where the names of new refs come from.\n"}]}