Skip to content

.gitmodules fsck cleanups

Jeff King git 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t7415: don't bother creating commit for symlink testt/t7415-submodule-names.sh+4 -70 replies
2/2fsck: avoid looking at NULL blob->objectfsck.c t/t7415-submodule-names.sh+20 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] .gitmodules fsck cleanups
Quoted 6 lines · SZEDER Gábor

I add few more lines of context here:

                tree=$(
                        {
                                printf "100644 blob $content\t$tricky\n" &&
Quoted 7 lines

Review

Quoted 4 lines
(quoted diff) +0 -1
 				printf "120000 blob $target\t.gitmodules\n"
 			} | git mktree
 		) &&
-		commit=$(git commit-tree $tree) &&

This was the only case where that $tree variable was used, so perhaps that can go away as well, in the name of even more simplicity?

Yep, that is simpler. Here's a v3 just dropping those $tree variables, and adjusting the commit message as appropriate.

[1/2]: t7415: don't bother creating commit for symlink test [2/2]: fsck: avoid looking at NULL blob->object

 fsck.c                     |  3 ++-
 t/t7415-submodule-names.sh | 29 ++++++++++++++++++++++-------
 2 files changed, 24 insertions(+), 8 deletions(-)

-Peff