Thread (56 messages) 56 messages, 4 authors, 2025-02-22

Re: [PATCH 12/16] path: drop `git_path()` in favor of `repo_git_path()`

From: Patrick Steinhardt <hidden>
Date: 2025-02-07 06:16:13

On Fri, Feb 07, 2025 at 12:01:19AM +0800, shejialuo wrote:
On Thu, Feb 06, 2025 at 08:58:08AM +0100, Patrick Steinhardt wrote:
quoted
Remove `git_path()` in favor of the `repo_git_path()` family of
functions, which makes the implicit dependency on `the_repository` go
away.
In this commit, I have concerns that I have already commented at
[PATCH 10/16]. I don't think we should use "repo_git_path" in most of
time, we may use "repo_git_path_replace" for most situation.
As mentioned in that commit, I don't quite agree with you. We should do
so if it allows us to reuse buffers, but if it doesn't it is totally
fine to allocate and free C strings.

Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help