Unverified Commit 81a6cc50 authored by Mirko Lelansky's avatar Mirko Lelansky Committed by GitHub
Browse files

feat(plugins): Add helper function to get current mercurial bookmark (#4970)

Add a new function to get the current mercurial bookmark which can be
used in the theme prompts for example.
parent 3cdc36fc
......@@ -63,3 +63,9 @@ function hgic() {
function hgoc() {
hg outgoing "$@" | grep "changeset" | wc -l
}
function hg_get_bookmark_name() {
if [ $(in_hg) ]; then
echo $(hg id -B)
fi
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment