diff options
| author | K Jayatheerth <jayatheerthkulkarni2005@gmail.com> | 2026-06-24 09:07:46 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-23 21:15:52 -0700 |
| commit | 60cafea9078097f051f39c234fb6aa8f6051b2bd (patch) | |
| tree | d0370614fdf012ab6d323f6175adcd64188ddad5 /t/t4013/diff.diff_initial..side | |
| parent | 1666c1265231b0bc5f613fbbf3f0a9896cdef76e (diff) | |
path: extract format_path() and use in rev-parse
Path formatting logic in builtin/rev-parse.c writes directly to
stdout. Other builtins cannot reuse it.
Extract this logic into format_path() in path.c and expose
a path_format enum in path.h.
Convert rev-parse to use the new helper in the same step to validate
the API against existing tests and avoid introducing dead code.
Mentored-by: Justin Tobler <jltobler@gmail.com>
Mentored-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
