Skip to content

another attempt at make_absolute_path()

Bradford C Smith git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2added file path helper routinescache.h path.c+252 -00 replies
2/2use make_absolute_path() in lock_file()lockfile.c+3 -130 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] another attempt at make_absolute_path()

Here's my attempt at make_absolute_path() and friends. I think this version handles symlinks cleanly to avoid problems with '..' path elements Junio pointed out recently.

I built these with another patch I previously submitted to make git-config consistently use lockfile.c routines and tested it with the regular test suite plus some extra tests Junio sent to the list for checking git-config symlink handling.

I also built a separate executable with just the path handling routines in it and spot-checked several cases to make sure it appeared to be working as expected. ('/', loop of symlinks, lots of extra slashes, . and .. elements, etc.)

Best Regards,

Bradford