How can I determine if the git submodule is really in front or behind it?

I found an old question that answers this to some extent, but it is not entirely useful as it stands:

how can i find out that the git submodule has new commands

Basically, I was hoping that git has changed since 2012, which is easier.

When I do git statuswith my current setup, I get two types of output. Regular strings

modified: path/to/submodule (new commits)

And additional information about submodules like this

* path/to/submodule/
  < upstream repo
  < added more commits
  < you should update this submodule

* path/to/submodule/
  > These commits
  > don't exist upstream
  > you should commit this submodule

Git seems to know exactly what is going on, but I don't seem to have a tool to determine this.

- , , , > <. script , , .

$ git --version
git version 1.8.5.3
+4
1

:

git config status.submodulesummary -1
git status --long

, upstream repo.

0

Source: https://habr.com/ru/post/1531743/


All Articles