Skip to content

Fix unnecessary (mtime) updates of files during merge

Elijah Newren git 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 10 repliesSuperseded
  3. v1 RFC2 patches 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3t6022: New test checking for unnecessary updates of renamed+modified filest/t6022-merge-rename.sh+31 -00 replies
2/3t6022: New test checking for unnecessary updates of files in D/F conflictst/t6022-merge-rename.sh+34 -00 replies
3/3merge-recursive: When we detect we can skip an update, actually skip itmerge-recursive.c t/t6022-merge-rename.sh+12 -70 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJeff King
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHv3 0/3] Fix unnecessary (mtime) updates of files during merge

This patch series fixes a bug reported by Stephen Rothwell -- that during merges git would unnecessarily update modification times of files. As noted by both Jeff and Junio, it's a bit of a band-aid since it doesn't dive into fixing make_room_for_path() and make_room_for_directories_of_df_conflicts(), but that would be a much bigger and more invasive change.

Changes since last version:
* Portability fixes for the tests suggested by Hannes (thanks!)
* Additional test cleanups suggested by Jeff
* Jeff's acks have been added

Elijah Newren (3):
t6022: New test checking for unnecessary updates of renamed+modified files
t6022: New test checking for unnecessary updates of files in D/F conflicts
merge-recursive: When we detect we can skip an update, actually skip it

 merge-recursive.c       |   17 ++++++++----
 t/t6022-merge-rename.sh |   65 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.4