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:
parent
d254dbb848
commit
a81b1dc6ef
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue