Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Display submodule commits for staged/unstaged changes #569

Closed
mhoff opened this issue Feb 16, 2017 · 1 comment
Closed

Comments

@mhoff
Copy link

mhoff commented Feb 16, 2017

The --submodule feature wonderfully renders the diff for submodules like this:

 center_ball/src | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Submodule center_ball/src ef871ba..e364997:
  > Update snn_utils.
  > Replace package snn_utils with submodule.
  > Warn if nest.SetMaxBuffered is not available.

But when displaying staged or unstaged changes the output still looks as follows:

diff --git a/pattern_matching/src b/pattern_matching/src
index 3d58c84..2432564 160000
--- a/pattern_matching/src
+++ b/pattern_matching/src
@@ -1 +1 @@
-Subproject commit 3d58c848423dfa063e77ba05e72bb5e8db4dc945
+Subproject commit 2432564760a67bb7c4fdaa009808fe30b9b9db1d

I think it would be consistent (and very helpful) if tig would list the commit descriptions instead of showing the changed commit reference.

P.S. @jonas This is a great project. I use tig every day in my workflow. Thank you for your good work!

@jonas
Copy link
Owner

jonas commented May 18, 2018

Thanks to @odnoletkov this should now be fixed. I rarely use submodules so haven't had a lot of motivation for fixing Tig in that respect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants