about summary refs log tree commit diff
path: root/users/grfn/system/home/modules
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-02-08T16·57-0500
committerclbot <clbot@tvl.fyi>2022-02-08T16·59+0000
commita81b1dc6efd6511fa680288ce42676a7cb2070cb (patch)
tree16ee20e301921e4d30eac47bf3b85bb324a13a03 /users/grfn/system/home/modules
parentd254dbb848ecf093c0de54a9104915f47f782ad1 (diff)
feat(grfn/home): Add function for git show -s --pretty=reference r/3793
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
Diffstat (limited to 'users/grfn/system/home/modules')
-rw-r--r--users/grfn/system/home/modules/development.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/development.nix b/users/grfn/system/home/modules/development.nix
index d60e6ba60759..f6ae2640aa98 100644
--- a/users/grfn/system/home/modules/development.nix
+++ b/users/grfn/system/home/modules/development.nix
@@ -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
+      '';
     };
   };
 }