git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] --no-deref and --stdin compatibility for update-ref
@ 2018-09-05 17:25 Elijah Newren
  2018-09-05 17:25 ` [PATCH 1/2] update-ref: fix type of update_flags variable to match its usage Elijah Newren
  2018-09-05 17:25 ` [PATCH 2/2] update-ref: allow --no-deref with --stdin Elijah Newren
  0 siblings, 2 replies; 3+ messages in thread
From: Elijah Newren @ 2018-09-05 17:25 UTC (permalink / raw)
  To: git; +Cc: brad.king, Elijah Newren

Currently, the --no-deref and --stdin options of update-ref cannot be
used together (the code aborts immediately with a usage message), though
it makes sense to do so and is easier than repeatedly specifying on
stdin that each ref should not be dereferenced.  Also, the documentation
for the --no-deref option has a few problems, making it unclear what it
is and isn't compatible with.

The first patch is just a minor code fixup that the second lightly
depends on.  The second patch has the changes to fix the issues stated
above.


Elijah Newren (2):
  update-ref: fix type of update_flags variable to match its usage
  update-ref: allow --no-deref with --stdin

 Documentation/git-update-ref.txt |  2 +-
 builtin/update-ref.c             | 25 ++++++++++++++-----------
 t/t1400-update-ref.sh            | 31 +++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 12 deletions(-)

-- 
2.19.0.rc2.2.g1aedc61e22


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

end of thread, other threads:[~2018-09-05 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 17:25 [PATCH 0/2] --no-deref and --stdin compatibility for update-ref Elijah Newren
2018-09-05 17:25 ` [PATCH 1/2] update-ref: fix type of update_flags variable to match its usage Elijah Newren
2018-09-05 17:25 ` [PATCH 2/2] update-ref: allow --no-deref with --stdin Elijah Newren

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 NNTP newsgroup(s).