feat(grfn/home): Add function for git show -s --pretty=reference

Change-Id: If639ac3515e92e7535f4c433948b3ec72424c035
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5261
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2022-02-08 11:57:17 -05:00 committed by clbot
parent d254dbb848
commit a81b1dc6ef

View file

@ -210,6 +210,10 @@ with lib;
gdelmerged = ''
git branch --merged | egrep -v 'master' | tr -d '+ ' | xargs git branch -d
'';
gref = ''
git show -s --pretty=reference "$1" | xclip -selection clipboard
'';
};
};
}