Thread (1 message) 1 message, 1 author, 2020-02-24

Re: [PATCH] worktree: drop unused code from get_main_worktree()

From: Junio C Hamano <hidden>
Date: 2020-02-24 20:20:19

Jeff King [off-list ref] writes:
On Sun, Feb 23, 2020 at 08:59:35PM -0500, Eric Sunshine wrote:
quoted
This code has been unused since fa099d2322 (worktree.c: kill parse_ref()
in favor of refs_resolve_ref_unsafe(), 2017-04-24), so drop it.
Looks obviously correct, unless we are depending on some side effect of
get_git_common_dir(). And if we are, then that should be fixed. ;)
Heh, get_git_common_dir() could be implemented to have some "setup"
kind of side effect for the first call to it, but what is removed is
the second call ;-)  Besides, the body of get_git_common_dir() is a
mere three lines that does not have any side effect, so...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help