dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit de515819a871ce54ad3f31ad34b8e19fc196dbc2 (patch)
parent dcd5b41e11db9e98b966284cc331ba82170f5f38
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun,  7 Jan 2024 04:25:59 +0000

plan9: Add git plumbing rules and scripts

Diffstat:
Aplan9/bin/rc/Glog | 2++
Aplan9/bin/rc/gd | 2++
Aplan9/bin/rc/gds | 2++
Mplan9/lib/plumbing | 4++++
4 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/plan9/bin/rc/Glog b/plan9/bin/rc/Glog @@ -0,0 +1,2 @@ +#!/bin/rc +git/log -s | plumb -i -d edit -a 'action=showdata filename=Glog' diff --git a/plan9/bin/rc/gd b/plan9/bin/rc/gd @@ -0,0 +1,2 @@ +#!/bin/rc +git/diff diff --git a/plan9/bin/rc/gds b/plan9/bin/rc/gds @@ -0,0 +1,2 @@ +#!/bin/rc +git/diff -s diff --git a/plan9/lib/plumbing b/plan9/lib/plumbing @@ -5,3 +5,7 @@ browser = mothra include basic +# sha1's to git +type is text +data matches '[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]+' +plumb start rc -c 'cd '$wdir' && git/export '$0' >[2=1] | plumb -i -d edit -a ''action=showdata filename=/'$wdir'/'$0''''