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

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

XMLWordPrintable

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes