Skip to content

Commit 8cd523a

Browse files
authored
Add "g.current_branch" to Readme.md (#519)
In my opinion .current_branch is a fairly common operation, and it would be nice to have it listed on the readme file.
1 parent 98270b6 commit 8cd523a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ g.revparse('v2.5:Makefile')
146146

147147
g.branches # returns Git::Branch objects
148148
g.branches.local
149+
g.current_branch
149150
g.branches.remote
150151
g.branches[:master].gcommit
151152
g.branches['origin/master'].gcommit

0 commit comments

Comments
 (0)