zsh-5.2-vcs_info.patch: use annotated upstream patches
This commit is contained in:
parent
6fca6daab2
commit
8ed053f722
@ -1,9 +1,13 @@
|
|||||||
Fix bug in VCS_INFO_nbcsformats which breaks my prompt....
|
From 17f17599d33e334d3ec78ab94956f440f18aaf04 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Stephenson <pws@zsh.org>
|
||||||
|
Date: Tue, 8 Dec 2015 12:59:48 +0000
|
||||||
|
Subject: [PATCH 1/2] 37347: Remove incorrect local for msgs in VCS info
|
||||||
|
|
||||||
Reported upstream in:
|
Upstream-commit: 4105f79a3a9b5a85c4ce167865e5ac661be160dc
|
||||||
http://www.zsh.org/mla/users/2016/msg00007.html
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||||
And fix suggested in:
|
---
|
||||||
http://www.zsh.org/mla/users/2016/msg00008.html
|
Functions/VCS_Info/VCS_INFO_nvcsformats | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/Functions/VCS_Info/VCS_INFO_nvcsformats b/Functions/VCS_Info/VCS_INFO_nvcsformats
|
diff --git a/Functions/VCS_Info/VCS_INFO_nvcsformats b/Functions/VCS_Info/VCS_INFO_nvcsformats
|
||||||
index 203a86d..581aa5a 100644
|
index 203a86d..581aa5a 100644
|
||||||
@ -17,15 +21,38 @@ index 203a86d..581aa5a 100644
|
|||||||
|
|
||||||
if [[ $1 == '-preinit-' ]] ; then
|
if [[ $1 == '-preinit-' ]] ; then
|
||||||
c='default'
|
c='default'
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
||||||
|
|
||||||
|
From b5cea7b0719e7d1d97dc76ed3df91c865596644a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Frank Terbeck <ft@bewatermyfriend.org>
|
||||||
|
Date: Wed, 30 Dec 2015 14:58:32 +0100
|
||||||
|
Subject: [PATCH 2/2] 37451: vcs_info: Declare "msgs" in early context
|
||||||
|
|
||||||
|
The parameter *is* being declared with the redefinition of the
|
||||||
|
function, but not in its initial form, which gets you a warning
|
||||||
|
about the parameter being defined globally. This fixes it.
|
||||||
|
|
||||||
|
Upstream-commit: dab6e7c2319c0aadb39eb9cce677e0a35da8314d
|
||||||
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
---
|
||||||
|
Functions/VCS_Info/vcs_info | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
|
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
|
||||||
index 628dde9..a44cd9e 100644
|
index 628dde9..f13f6b5 100644
|
||||||
--- a/Functions/VCS_Info/vcs_info
|
--- a/Functions/VCS_Info/vcs_info
|
||||||
+++ b/Functions/VCS_Info/vcs_info
|
+++ b/Functions/VCS_Info/vcs_info
|
||||||
@@ -10,6 +10,7 @@
|
@@ -10,7 +10,7 @@
|
||||||
|
|
||||||
setopt localoptions noksharrays extendedglob NO_shwordsplit
|
setopt localoptions noksharrays extendedglob NO_shwordsplit
|
||||||
local file func sys
|
local file func sys
|
||||||
+local -a msgs
|
-local -a static_functions
|
||||||
local -a static_functions
|
+local -a static_functions msgs
|
||||||
local -i maxexports
|
local -i maxexports
|
||||||
|
|
||||||
|
static_functions=(
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user