worktree.c: make find_shared_symref() return struct worktree *
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 22 Apr 2016 13:01:27 +0000 (20:01 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Apr 2016 21:09:37 +0000 (14:09 -0700)
commitd3b9ac07eb44974bb619d71fc6c81c9f2036b96c
treeff18f60eb58addac7e2a2008d4d9f1aa43ad3b30
parent69dfe3b9420eb2a7f479a0a4cad663111af2b1f9
worktree.c: make find_shared_symref() return struct worktree *

This gives the caller more information and they can answer things like,
"is it the main worktree" or "is it the current worktree". The latter
question is needed for the "checkout a rebase branch" case later.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
builtin/branch.c
builtin/notes.c
worktree.c
worktree.h