threads / discuss / 44030

Why patch is not showed at log?

Subject: Why patch is not showed at log?

## tl;dr

2 messages between Sep 7, 2016 and Sep 7, 2016.

replies: 1people: 2as markdown or json

KES· Sep 7, 2016, 08:13 UTC · lore
I have patch:
diff --git a/t b/t
index ced22c4..992533b 100644
--- a/t
+++ b/t
@@ -1,2 +1,2 @@
 asdf
-asdf
\ No newline at end of file
+asdf

When I commit it I do not see it at log:

commit 1efee9908a734c40194ffc07e7793afd2e386fbc
Author: x
Date:   Wed Sep 7 11:09:04 2016 +0300

    asdf


commit 4f429665850cb929f73f1463bedd978dd8b68009
Author: x
Date:   Wed Sep 7 11:05:20 2016 +0300

    asdf

diff --git a/t b/t
new file mode 100644
index 0000000..ced22c4
--- /dev/null
+++ b/t
@@ -0,0 +1,2 @@
+asdf
+asdf
\ No newline at end of file

Why I do not see changes at log when 'new line' was added at the end of file?
Kevin Daudt· Sep 7, 2016, 10:28 UTC · re: KES · lore

Re: Why patch is not showed at log?

On Wed, Sep 07, 2016 at 11:13:09AM +0300, KES wrote:
> 
> Why I do not see changes at log when 'new line' was added at the end of file?

I'm not sure what you exactly mean, but do you want to see the actual change the patch introduces in the log output? In that case, you can use git log --patch to include the diff.

If not, could you please explain what you mean?
Kevin

← back to recent threads