git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Changing indents
@ 2010-05-21 16:01 Andrew Keller
  2010-05-21 16:05 ` Ævar Arnfjörð Bjarmason
  2010-05-21 16:30 ` Jakub Narebski
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Keller @ 2010-05-21 16:01 UTC (permalink / raw)
  To: Git List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing indents
  2010-05-21 16:01 Changing indents Andrew Keller
@ 2010-05-21 16:05 ` Ævar Arnfjörð Bjarmason
  2010-05-21 16:12   ` Andrew Keller
  2010-05-21 16:30 ` Jakub Narebski
  1 sibling, 1 reply; 5+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-05-21 16:05 UTC (permalink / raw)
  To: Andrew Keller; +Cc: Git List

On Fri, May 21, 2010 at 16:01, Andrew Keller <andrew@kellerfarm.com> 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 ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing indents
  2010-05-21 16:05 ` Ævar Arnfjörð Bjarmason
@ 2010-05-21 16:12   ` Andrew Keller
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Keller @ 2010-05-21 16:12 UTC (permalink / raw)
  To: Git List

On May 21, 2010, at 12:05 PM, Ævar Arnfjörð Bjarmason wrote:
> On Fri, May 21, 2010 at 16:01, Andrew Keller <andrew@kellerfarm.com> 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 ?

Oh, there we go!

Thanks,
Andrew Keller

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing indents
  2010-05-21 16:01 Changing indents Andrew Keller
  2010-05-21 16:05 ` Ævar Arnfjörð Bjarmason
@ 2010-05-21 16:30 ` Jakub Narebski
  2010-05-22  2:46   ` Andrew Keller
  1 sibling, 1 reply; 5+ messages in thread
From: Jakub Narebski @ 2010-05-21 16:30 UTC (permalink / raw)
  To: Andrew Keller; +Cc: Git List

Andrew Keller <andrew@kellerfarm.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing indents
  2010-05-21 16:30 ` Jakub Narebski
@ 2010-05-22  2:46   ` Andrew Keller
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Keller @ 2010-05-22  2:46 UTC (permalink / raw)
  To: Git List

On May 21, 2010, at 12:30 PM, Jakub Narebski wrote:
> Andrew Keller <andrew@kellerfarm.com> 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).

Because I forgot about -w of blame...

Thanks,
~ Andrew Keller

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-22  2:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 16:01 Changing indents Andrew Keller
2010-05-21 16:05 ` Ævar Arnfjörð Bjarmason
2010-05-21 16:12   ` Andrew Keller
2010-05-21 16:30 ` Jakub Narebski
2010-05-22  2:46   ` Andrew Keller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).