1
0
mirror of https://github.com/git/git.git synced 2025-03-24 20:13:04 +00:00
Kazuki Yamaguchi 70999e9cec branch -m: update all per-worktree HEADs
When renaming a branch, currently only the HEAD of current working tree
is updated, but it must update HEADs of all working trees which point at
the old branch.

This is the current behavior, /path/to/wt's HEAD is not updated:

  % git worktree list
  /path/to     2c3c5f2 [master]
  /path/to/wt  2c3c5f2 [oldname]
  % git branch -m master master2
  % git worktree list
  /path/to     2c3c5f2 [master2]
  /path/to/wt  2c3c5f2 [oldname]
  % git branch -m oldname newname
  % git worktree list
  /path/to     2c3c5f2 [master2]
  /path/to/wt  0000000 [oldname]

This patch fixes this issue by updating all relevant worktree HEADs
when renaming a branch.

Signed-off-by: Kazuki Yamaguchi <k@rhe.jp>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-04-04 12:57:22 -07:00
..
2016-02-24 13:26:01 -08:00
2016-02-26 13:37:16 -08:00
2016-02-26 13:37:16 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00
2016-02-10 14:20:08 -08:00
2015-10-21 15:59:34 -07:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00
2016-01-28 16:10:14 -08:00
2016-02-26 13:37:25 -08:00
2016-02-26 13:37:19 -08:00
2015-11-20 08:02:05 -05:00
2015-10-05 13:20:08 -07:00
2015-11-20 08:02:05 -05:00
2016-02-22 13:10:21 -08:00
2016-01-28 16:10:14 -08:00
2015-11-20 08:02:05 -05:00
2016-02-26 13:37:16 -08:00