mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
45365: _git: Fix __git_recent_branches for the case when a commit has an empty message
This commit is contained in:
parent
581585dfc6
commit
e71ba9704f
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-02-02 WGH <wgh@torlan.ru>
|
||||
|
||||
* 45365: Completion/Unix/Command/_git: Fix __git_recent_branches
|
||||
for the case when a commit has an empty message
|
||||
|
||||
2020-01-29 Daniel Shahaf <danielsh@apache.org>
|
||||
|
||||
* 45343: Src/exec.c, Src/math.c: Queue signals around arithmetic
|
||||
|
|
|
@ -6662,8 +6662,8 @@ __git_recent_branches() {
|
|||
|
||||
# 4. Obtain log messages for all of them in one shot.
|
||||
# TODO: we'd really like --sort=none here... but git doesn't support such a thing.
|
||||
# The \n removal is because for-each-ref prints a \n after each entry.
|
||||
descriptions=( ${(0)"$(_call_program all-descriptions "git --no-pager for-each-ref --format='%(refname)%00%(subject)%00'" refs/heads/${(q)^branches} "--")"//$'\n'} )
|
||||
local z=$'\0'
|
||||
descriptions=( "${(0)"$(_call_program all-descriptions "git --no-pager for-each-ref --format='%(refname)%00%(subject)'" refs/heads/${(q)^branches} "--")"//$'\n'/$z}" )
|
||||
|
||||
# 5. Synthesize the data structure _describe wants.
|
||||
local -a branches_colon_descriptions
|
||||
|
|
Loading…
Reference in a new issue