# Changing indents

5 messages from 2010-05-21 to 2010-05-22. Participants: Andrew Keller, Ævar Arnfjörð Bjarmason, Jakub Narebski.
Thread: https://gitlist.dev/t/23870

## Andrew Keller, 2010-05-21 16:01

Subject: Changing indents
Message-ID: <C0CDDC0A-A813-41C3-8CEC-40EFADFB5A4A@kellerfarm.com>
URL: https://gitlist.dev/e/C0CDDC0A-A813-41C3-8CEC-40EFADFB5A4A%40kellerfarm.com

```
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

```

## Ævar Arnfjörð Bjarmason, 2010-05-21 16:05

Subject: Re: Changing indents
Message-ID: <AANLkTikWhkX5mJT1f-3oIeLEVwttRhUm0MbGI-0W08b_@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikWhkX5mJT1f-3oIeLEVwttRhUm0MbGI-0W08b_%40mail.gmail.com
In-Reply-To: <C0CDDC0A-A813-41C3-8CEC-40EFADFB5A4A@kellerfarm.com>

```
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 ?

```

## Andrew Keller, 2010-05-21 16:12

Subject: Re: Changing indents
Message-ID: <B8479D8D-5A73-4801-BD15-9E787EA3272A@kellerfarm.com>
URL: https://gitlist.dev/e/B8479D8D-5A73-4801-BD15-9E787EA3272A%40kellerfarm.com
In-Reply-To: <AANLkTikWhkX5mJT1f-3oIeLEVwttRhUm0MbGI-0W08b_@mail.gmail.com>

```
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

```

## Jakub Narebski, 2010-05-21 16:30

Subject: Re: Changing indents
Message-ID: <m3vdahqkuw.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3vdahqkuw.fsf%40localhost.localdomain
In-Reply-To: <C0CDDC0A-A813-41C3-8CEC-40EFADFB5A4A@kellerfarm.com>

```
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

```

## Andrew Keller, 2010-05-22 02:46

Subject: Re: Changing indents
Message-ID: <F19D8C01-CDA8-4381-94EC-4105E70A92CA@kellerfarm.com>
URL: https://gitlist.dev/e/F19D8C01-CDA8-4381-94EC-4105E70A92CA%40kellerfarm.com
In-Reply-To: <m3vdahqkuw.fsf@localhost.localdomain>

```
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

```
