Re: git diff annoyance / feature request
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Aug 26, 2011, 21:16 UTC
- Message-ID
- <4E580D49.1070006@lsrfire.ath.cx>
- In-Reply-To
- <4E569F10.8060808@panasas.com>
Am 25.08.2011 21:14, schrieb Boaz Harrosh:
Show 22 quoted lines
>
> git diff has this very annoying miss-fixture where it will state
> as hunk header the closest label instead of the function name.
>
> So I get:
> @@ -675,9 +670,23 @@ try_again:
> }
>
> if (flag) {
> - foo();
> + bazz();
> }
>
>
> Instead of what I'd like:
> @@ -563,12 +563,7 @@ static int write_exec(struct page_collect *pcol)
> }
>
> if (flag) {
> - foo();
> + bazz();
> }Cheap trick: change your coding style to place a single space before labels instead of having them start right at the beginning of a line.
René