[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tabs, git diff and git apply
From: |
Stefan Monnier |
Subject: |
Re: tabs, git diff and git apply |
Date: |
Sat, 28 Nov 2020 09:40:47 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Some three lines appearing in my window.c as
>
> if (WINDOWP (w->contents))
> cont = foreach_window_1 (XWINDOW (w->contents), fn, user_data);
> else
>
> appear in *shell* after git diff as
>
> + if (WINDOWP (w->contents))
> + cont = foreach_window_1 (XWINDOW (w->contents), fn, user_data);
> + else
>
> Note the extra space after the "+" in the second line and the off-by-one
> indentation.
Any chance you're using non-unified diffs? These match the
"[-+ ] <LINE>" pattern, contrary to unified diffs which use "[-+ ]<LINE>".
IOW, maybe there's nothing wrong.
> A subsequent git apply then complains about
>
> /home/martin/temp/master..changes-2020-11-28.diff:3847: space before tab in
> indent.
> cont = foreach_window_1 (XWINDOW (w->contents), fn, user_data);
Hard to tell without more info.
Have you tried it in an xterm rather than withing a *shell* buffer?
Stefan
- Re: tabs, git diff and git apply, (continued)
- Re: tabs, git diff and git apply, Alfred M. Szmidt, 2020/11/28
- Re: tabs, git diff and git apply, martin rudalics, 2020/11/28
- Re: tabs, git diff and git apply, Alfred M. Szmidt, 2020/11/28
- Re: tabs, git diff and git apply, martin rudalics, 2020/11/29
- Re: tabs, git diff and git apply, Alfred M. Szmidt, 2020/11/29
- Re: tabs, git diff and git apply, martin rudalics, 2020/11/29
- Re: tabs, git diff and git apply, Yuri Khan, 2020/11/29
Re: tabs, git diff and git apply,
Stefan Monnier <=