How can I view branches other than master in gitweb?

I would like to see the changes I have made to a file on a branch other than master. Is there a way to do this?

Also, it would be really nice if I could distinguish between the heads of multiple branches, for example MyBranch HEAD and master HEAD.

+3


source to share


3 answers


All chapters (branches) and tags are listed on the project summary page ( /?p=yourrepo.git;a=summary

). Currently Gitweb does not maintain a distinct full tree from another commit.



+2


source


You can specify branches with h = refs / heads / XXX. For example, to see the "develop" branch of testing a project, set the options /? P = teseting.git; a = log; h = refs / heads / develop



+1


source


To see the changes made to README.txt

about the last commit on a branch documentation

:

git diff -p -1 documentation -- README.txt

      

(or use gitk documentation

for a visual tool).

To show the difference between a chapter branchA

and branchB

:

git diff branchA branchB

      

0


source







All Articles