Changing indents

5 messages, 3 authors, 2016-06-15 · open the first message on its own page

Changing indents

From: Andrew Keller <hidden>
Date: 2016-06-15 22:48:50

Is it possible to change the indent of a line (or multiple lines) without rewriting the whole line?  Or, more specifically, can a commit exist that modifies the leading whitespace of a line but still allows you to trace the origin of the line to a previous commit?

Thanks,
Andrew Keller

Re: Changing indents

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:48:50

On Fri, May 21, 2010 at 16:01, Andrew Keller [off-list ref] wrote:
Is it possible to change the indent of a line (or multiple lines) without rewriting the whole line?  Or, more specifically, can a commit exist that modifies the leading whitespace of a line but still allows you to trace the origin of the line to a previous commit?
Maybe you want: git blame $sha^ file ?

Re: Changing indents

From: Andrew Keller <hidden>
Date: 2016-06-15 22:48:50

On May 21, 2010, at 12:05 PM, Ævar Arnfjörð Bjarmason wrote:
On Fri, May 21, 2010 at 16:01, Andrew Keller [off-list ref] wrote:
quoted
Is it possible to change the indent of a line (or multiple lines) without rewriting the whole line?  Or, more specifically, can a commit exist that modifies the leading whitespace of a line but still allows you to trace the origin of the line to a previous commit?
Maybe you want: git blame $sha^ file ?
Oh, there we go!

Thanks,
Andrew Keller

Re: Changing indents

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:48:50

Andrew Keller [off-list ref] writes:
Is it possible to change the indent of a line (or multiple lines)
without rewriting the whole line?  Or, more specifically, can a
commit exist that modifies the leading whitespace of a line but
still allows you to trace the origin of the line to a previous
commit?
Whatever for?  Use "git blame -w <file>" (ignore whitespace).

-- 
Jakub Narebski
Poland
ShadeHawk on #git

Re: Changing indents

From: Andrew Keller <hidden>
Date: 2016-06-15 22:48:50

On May 21, 2010, at 12:30 PM, Jakub Narebski wrote:
Andrew Keller [off-list ref] writes:
quoted
Is it possible to change the indent of a line (or multiple lines)
without rewriting the whole line?  Or, more specifically, can a
commit exist that modifies the leading whitespace of a line but
still allows you to trace the origin of the line to a previous
commit?
Whatever for?  Use "git blame -w <file>" (ignore whitespace).
Because I forgot about -w of blame...

Thanks,
~ Andrew Keller
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help