Skip to content

--no-deref and --stdin compatibility for update-ref

Elijah Newren git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2update-ref: fix type of update_flags variable to match its usagebuiltin/update-ref.c+1 -10 replies
2/2update-ref: allow --no-deref with --stdinDocumentation/git-update-ref.txt builtin/update-ref.c t/t1400-update-ref.sh+45 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] --no-deref and --stdin compatibility for update-ref

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(-)
Signature · 1 line
2.19.0.rc2.2.g1aedc61e22