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



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