Patrick Steinhardt
88dd321cfe
path: drop git_path() in favor of repo_git_path()
...
Remove `git_path()` in favor of the `repo_git_path()` family of
functions, which makes the implicit dependency on `the_repository` go
away.
Note that `git_path()` returned a string allocated via `get_pathname()`,
which uses a rotating set of statically allocated buffers. Consequently,
callers didn't have to free the returned string. The same isn't true for
`repo_common_path()`, so we also have to add logic to free the returned
strings.
This refactoring also allows us to remove `repo_common_pathv()` as well
as `get_pathname()` from the public interface.
Signed-off-by: Patrick Steinhardt <ps@pks.im >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2025-02-28 13:54:11 -08:00
..
2024-12-06 20:20:04 +09:00
2025-02-07 09:59:22 -08:00
2024-10-25 14:02:36 -04:00
2024-09-13 14:32:24 -07:00
2024-10-11 09:37:18 -07:00
2024-12-06 20:20:02 +09:00
2025-01-21 08:44:54 -08:00
2025-01-29 14:05:09 -08:00
2024-12-18 10:44:31 -08:00
2024-12-13 07:33:36 -08:00
2024-12-23 09:32:11 -08:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2024-12-23 09:32:11 -08:00
2024-12-06 20:20:02 +09:00
2025-02-07 09:59:22 -08:00
2024-09-13 14:32:24 -07:00
2024-12-18 10:44:30 -08:00
2025-01-17 13:30:03 -08:00
2025-02-28 13:54:11 -08:00
2025-02-07 09:59:22 -08:00
2024-12-04 08:21:54 +09:00
2025-01-28 13:02:24 -08:00
2024-11-01 12:53:19 -04:00
2024-09-13 14:32:24 -07:00
2025-01-28 13:02:22 -08:00
2024-12-23 09:32:11 -08:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:02 +09:00
2024-12-06 20:20:04 +09:00
2024-12-06 20:20:02 +09:00
2025-02-07 09:59:22 -08:00
2025-01-17 13:30:03 -08:00
2025-01-06 12:02:21 -08:00
2024-09-23 10:35:09 -07:00
2025-01-21 09:06:24 -08:00
2024-12-06 20:20:04 +09:00
2025-02-07 09:59:23 -08:00
2025-01-17 13:30:03 -08:00
2025-02-28 13:54:11 -08:00
2025-01-17 13:30:03 -08:00
2025-01-01 14:13:01 -08:00
2024-09-13 14:32:24 -07:00
2024-12-18 10:44:30 -08:00
2024-11-26 10:36:08 +09:00
2025-02-03 10:23:34 -08:00
2024-11-21 08:23:45 +09:00
2024-10-14 12:33:02 -04:00
2025-01-21 08:44:54 -08:00
2025-01-17 13:30:03 -08:00
2024-11-04 22:37:51 -08:00
2024-09-13 14:32:24 -07:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2024-12-27 08:12:40 -08:00
2024-12-06 20:20:02 +09:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:04 +09:00
2025-01-17 13:30:03 -08:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-12-04 10:32:20 +09:00
2024-12-06 20:20:02 +09:00
2024-12-06 20:20:02 +09:00
2025-02-28 13:54:11 -08:00
2025-02-03 10:23:34 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:03 +09:00
2024-12-06 20:20:05 +09:00
2024-09-13 14:33:30 -07:00
2024-12-18 10:44:30 -08:00
2024-12-06 20:20:04 +09:00
2024-12-06 20:20:04 +09:00
2024-12-23 09:32:17 -08:00
2024-09-13 14:32:24 -07:00
2025-02-28 13:54:11 -08:00
2025-02-07 09:59:23 -08:00
2024-12-06 20:20:03 +09:00
2024-12-04 10:14:47 +09:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-02-28 13:54:11 -08:00
2024-12-23 09:32:11 -08:00
2025-02-07 09:59:22 -08:00
2024-12-06 20:20:02 +09:00
2025-02-28 13:54:11 -08:00
2024-12-06 20:20:03 +09:00
2025-01-28 13:02:22 -08:00
2025-02-28 13:54:11 -08:00
2024-12-06 20:20:03 +09:00
2024-12-06 20:20:02 +09:00
2024-12-18 10:44:30 -08:00
2024-12-06 20:20:03 +09:00
2024-12-06 20:20:02 +09:00
2025-01-31 09:44:16 -08:00
2024-09-13 14:32:24 -07:00
2024-12-06 20:20:02 +09:00
2024-12-06 20:20:04 +09:00
2024-09-13 14:32:24 -07:00
2025-02-07 09:59:22 -08:00
2024-09-13 14:32:24 -07:00
2025-02-07 09:59:22 -08:00
2025-01-17 13:30:03 -08:00
2025-01-28 13:02:23 -08:00
2025-01-17 13:30:03 -08:00
2024-12-06 20:20:02 +09:00
2024-12-18 10:44:30 -08:00
2025-01-17 13:30:03 -08:00
2024-12-18 10:44:30 -08:00
2025-01-28 13:02:22 -08:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2025-01-21 09:06:24 -08:00
2025-02-28 13:54:11 -08:00
2024-09-23 10:35:09 -07:00