From: "Дилян Палаузов" <dilyan.palauzov@aegee.org>
To: git@vger.kernel.org
Subject: git log --ignore-space-change -L start,end:file does not ignore indentation changes
Date: Sun, 23 Apr 2017 08:08:42 +0200 [thread overview]
Message-ID: <e18acd03-e10b-34b6-3883-bf91136bf299@aegee.org> (raw)
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
Дилян
reply other threads:[~2017-04-23 6:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e18acd03-e10b-34b6-3883-bf91136bf299@aegee.org \
--to=dilyan.palauzov@aegee.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).