We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a39497 commit d3e50c3Copy full SHA for d3e50c3
git-branch-status
@@ -215,8 +215,10 @@ function AssertIsNotBareRepo
215
function GetRefs # (refs_dir)
216
{
217
local refs_dir=$1
218
+ local fmt='%(refname:short) %(upstream:short)'
219
+ local sort=$( (( $SHOW_DATES )) && echo '--sort=creatordate')
220
- git for-each-ref --format="%(refname:short) %(upstream:short)" $refs_dir 2> /dev/null
221
+ git for-each-ref --format="$fmt" $sort $refs_dir 2> /dev/null
222
}
223
224
function GetLocalRefs
0 commit comments