# git log --ignore-space-change -L start,end:file does not ignore indentation changes

1 messages from 2017-04-23 to 2017-04-23. Participants: Дилян Палаузов.
Thread: https://gitlist.dev/t/45776

## Дилян Палаузов, 2017-04-23 06:08

Subject: git log --ignore-space-change -L start,end:file does not ignore indentation changes
Message-ID: <e18acd03-e10b-34b6-3883-bf91136bf299@aegee.org>
URL: https://gitlist.dev/e/e18acd03-e10b-34b6-3883-bf91136bf299%40aegee.org

```
Hello,

$ git version
git version 2.12.2.89.g49800c940

$ git init
Initialized empty Git repository in .git/

$ cat a.c
int main() {
  int result;
}

$git add a.c

$git commit -m I
[master (root-commit) ef9ab63] I
  1 file changed, 3 insertions(+)
  create mode 100644 a.c

$cat a.c  # now the indentation of result changed
cat a.c
int main() {
    int result;
    return 0;
}

$git commit -am J
[master 1bed130] J
  1 file changed, 2 insertions(+), 1 deletion(-)

$git -oneline -b -L:main:a.c
1bed130 J

diff --git a/a.c b/a.c
--- a/a.c
+++ b/a.c
@@ -1,3 +1,4 @@
  int main() {
- int result;
+   int result;
+   return 0;
  }
ef9ab63 I

diff --git a/a.c b/a.c
--- /dev/null
+++ b/a.c
@@ -0,0 +1,3 @@
+int main() {
+ int result;
+}

I expect that the result-line is not displayed as changed, when git log 
is called with -b.

Likewise:
git log --oneline  -b -L2,2:a.c
1bed130 J

diff --git a/a.c b/a.c
--- a/a.c
+++ b/a.c
@@ -2,1 +2,1 @@
- int result;
+   int result;
ef9ab63 I

diff --git a/a.c b/a.c
--- /dev/null
+++ b/a.c
@@ -0,0 +2,1 @@
+ int result;

Regards
   Дилян

```
