How does git-review work?

I want to know how exactly the command works git review

? I mean, is she using a command git push

(internally) or whatever to load the changes into the gerrit. This information would be helpful to me when writing git hooks for git review

.

+3


source to share


1 answer


From an excellent guide :

When you submit changes, it git review

does the following:



  • it looks at which branch to push (production or whatever) in the file .gitreview

    . If he cannot find this information, he pressesmaster

  • it defines which "theme" should be added to the revision (you can install the theme manually with -t

    )
    • If you resubmit the uploaded change, it will reuse the original change tag.
    • if the summary summary contains an error number, for example bug 12345

      , the tag would bebug/12345

    • Otherwise the tag will be the name of your local branch
  • this changes your change to the HEAD

    branch you are pushing to (use -R

    to skip this)
  • If you are submitting more than one change at a time, or submitting a change based on another unauthorized change, it will ask you if you actually did it (use -y

    to skip this).
  • it pushes changes to view
+7


source







All Articles