Is there any way to list the deleted branch in gitweb interface?
I just created a new branch in git and the same is reflected in gitweb interface but when I delete the branch it is no listed in gitweb interface, Ideally it should listed in gitweb interface with a message Branch deleted
Please let me know if its possible !
In Git, Branches are Pointers to Commits. Every commit points to its parent(s). So, there are only two ways to make commits visible:
As Branches itself are only pointers, they are not commited and therefore not versioned. If you delete a Branch, it is lost forever, without any notice from anything (apart from reflog). That doesn't mean you lost something, because it is only a pointer after all. You can still use
git reflog
to get the commit's SHA back. Then you can create a new branch pointing at that commit.To answer your question:
No, as branches are not versioned you will not get a
branch deleted
message in gitweb.The only way to make the "deleted" commits visible is, to use one of the above mentioned ways to make a commit visible (or reachable). Maybe you can create a branch
deleted_branch
?