zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: vcs_info first-time failure
@ 2008-09-22 16:25 Clint Adams
  2008-09-22 16:50 ` Frank Terbeck
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2008-09-22 16:25 UTC (permalink / raw)
  To: zsh-workers

Someone complained that vcs_info didn't work on its first invocation.

Index: Functions/VCS_Info/vcs_info
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/VCS_Info/vcs_info,v
retrieving revision 1.1
diff -u -r1.1 vcs_info
--- Functions/VCS_Info/vcs_info	19 Sep 2008 12:58:52 -0000	1.1
+++ Functions/VCS_Info/vcs_info	22 Sep 2008 16:23:13 -0000
@@ -88,3 +88,5 @@
     VCS_INFO_set
     return 0
 }
+
+vcs_info "$@"


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: vcs_info first-time failure
  2008-09-22 16:25 PATCH: vcs_info first-time failure Clint Adams
@ 2008-09-22 16:50 ` Frank Terbeck
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Terbeck @ 2008-09-22 16:50 UTC (permalink / raw)
  To: zsh-workers

Clint Adams <clint@zsh.org>:
> Someone complained that vcs_info didn't work on its first invocation.

Okay, if we do it like this (and I agree it's the more user-friendly
approach), I think the docs should be adjusted like this:


Index: Doc/Zsh/contrib.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/contrib.yo,v
retrieving revision 1.86
diff -u -r1.86 contrib.yo
--- Doc/Zsh/contrib.yo	19 Sep 2008 15:09:06 -0000	1.86
+++ Doc/Zsh/contrib.yo	22 Sep 2008 16:40:18 -0000
@@ -345,7 +345,7 @@
 
 To load var(vcs_info):
 
-example(autoload -Uz vcs_info && vcs_info)
+example(autoload -Uz vcs_info)
 
 If you plan to use the information from var(vcs_info) in your prompt (which
 is its primary use), you need to enable the tt(PROMPT_SUBST) option.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-22 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-22 16:25 PATCH: vcs_info first-time failure Clint Adams
2008-09-22 16:50 ` Frank Terbeck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).