P
P
Philip Bondarev2018-04-07 15:37:15
git
Philip Bondarev, 2018-04-07 15:37:15

How do I know with libgit2 in a Qt program that a remote repository has changed?

Good afternoon, please tell me how to get information about the state of a remote repository in a program written in Qt if libgit2 is used ? Let's say I have local and remote repositories, the remote has 1 more commit. If I use the console command git status , then I get the following in the console:

The result of running the git status command
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean

However, things are not so simple with the C family of 'git_status _... '. There are a couple of examples, but they are for pure C, I would like to know how to implement this in relation to Qt

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question