Uploaded image for project: 'Qt Cloud'
  1. Qt Cloud
  2. CLOUD-51

show git-out and git-in (ahead and behind) commits

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Backend , Git
    • None

    Description

      We should be able to show to the user the commits that they are ahead or behind of the remote tracking branch. The git command for this purpose is:

      Git OUT

       git log --pretty=format:'%C(yellow)%h%Creset: %Cblue%an%Creset %s' --abbrev-commit --graph @\{u}..
      

      Git IN

      git fetch && git log --pretty=format:'%C(yellow)%h%Creset: %Cblue%an%Creset %s' --abbrev-commit --graph ..@{u}
      

      Of course, we should use gitpython for this purpose and use `iter_commits` when the repo is ahead or behind. This should also have a frontend ticket where the output is shown to user.

      Attachments

        Activity

          People

            Unassigned Unassigned
            as33ms Aseem Shakuntal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: