aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2024-04-14 01:11:44 +0000
committerJunio C Hamano <gitster@pobox.com>2024-04-15 10:06:17 -0700
commit5733f894d7e66d0f0fbd29675d8420825ce0c29f (patch)
tree2d36688fed30fc94f31a8bfa23cfc557650d3243 /commit.c
parentfast-import: tighten path unquoting (diff)
downloadgit-5733f894d7e66d0f0fbd29675d8420825ce0c29f.tar.gz
git-5733f894d7e66d0f0fbd29675d8420825ce0c29f.zip
fast-import: directly use strbufs for paths
Previously, one case would not write the path to the strbuf: when the path is unquoted and at the end of the string. It was essentially copy-on-write. However, with the logic simplification of the previous commit, this case was eliminated and the strbuf is always populated. Directly use the strbufs now instead of an alias. Since this already changes all the lines that use the strbufs, rename them from `uq` to be more descriptive. That they are unquoted is not their most important property, so name them after what they carry. Additionally, `file_change_m` no longer needs to copy the path before reading inline data. Signed-off-by: Thalia Archibald <thalia@archibald.dev> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions