Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/2] Add Git hook comparing local HEAD to remote HEAD to vcs_info-examples
- X-seq: zsh-workers 28094
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: Seth House <seth@xxxxxxxxx>
- Subject: Re: [PATCH 2/2] Add Git hook comparing local HEAD to remote HEAD to vcs_info-examples
- Date: Mon, 19 Jul 2010 21:07:45 +0200
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <loom.20100716T001141-742@xxxxxxxxxxxxxx> (Seth House's message of "Thu, 15 Jul 2010 22:34:26 +0000 (UTC)")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <loom.20100716T001141-742@xxxxxxxxxxxxxx>
Seth House wrote:
> This is the Git version of the existing Mercurial example that shows a
> marker comparing your local branch status to a remote branch.
Hey!
This one didn't apply, because your client wrapped two long lines.
[...]
> + ahead=$(git rev-list ${hook_com[branch]}@{upstream}..HEAD 2>/dev/null | wc
> -l)
[...]
> + behind=$(git rev-list HEAD..${hook_com[branch]}@{upstream} 2>/dev/null | wc
> -l)
[...]
I fixed that up manually. Since you used `git' anyway to produce the
patches, use `git send-email' to send the patches, too. That tool will
not screw up patches, like some MUAs (especially webmail clients) do.
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author