Skip to content

Teach read-tree the -n|--dry-run option

Jens Lehmann git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v1 RFC1 patch 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2unpack-trees: add the dry_run flag to unpack_trees_optionsunpack-trees.c unpack-trees.h+4 -31 reply
2/2Teach read-tree the -n|--dry-run optionDocumentation/git-read-tree.txt builtin/read-tree.c t/lib-read-tree.sh +9 more+198 -1401 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Teach read-tree the -n|--dry-run option

Am 25.05.2011 01:18, schrieb Junio C Hamano:

Quoted 10 lines
Quoted 7 lines · Jens Lehmann

My "Teach read-tree the -n|--dry-run option" adapted to this new flag runs all tests successfully ...

 unpack-trees.c |    4 ++--
 unpack-trees.h |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

But on which change does this come?

As a preparing step for "read-tree the -n|--dry-run" (and adding a dry-run option to other users of unpack_trees() should be pretty straightforward now too).

The first patch in this series enables unpack_trees() to do a dry-run. That enables users of unpack_trees() to see if running this function with the update flag set would succeed.

The second patch uses this new dry_run flag to teach read-tree the -n|--dry-run option.

Jens Lehmann (2):
unpack-trees: add the dry_run flag to unpack_trees_options Teach read-tree the -n|--dry-run option

 Documentation/git-read-tree.txt      |    5 ++
 builtin/read-tree.c                  |    3 +-
 t/lib-read-tree.sh                   |   43 ++++++++++++++++++
 t/t1000-read-tree-m-3way.sh          |   81 +++++++++++++++++-----------------
 t/t1001-read-tree-m-2way.sh          |   45 ++++++++++---------
 t/t1002-read-tree-m-u-2way.sh        |   81 +++++++++++++++++-----------------
 t/t1004-read-tree-m-u-wf.sh          |   23 +++++-----
 t/t1005-read-tree-reset.sh           |   13 +++---
 t/t1008-read-tree-overlay.sh         |    3 +-
 t/t1011-read-tree-sparse-checkout.sh |   27 ++++++-----
 t/t1012-read-tree-df.sh              |    9 ++--
 t/t1020-subdirectory.sh              |    5 +-
 unpack-trees.c                       |    4 +-
 unpack-trees.h                       |    3 +-
 14 files changed, 202 insertions(+), 143 deletions(-)
 create mode 100644 t/lib-read-tree.sh
Signature · 1 line
1.7.5.2.355.gdceb0