aboutsummaryrefslogtreecommitdiff
path: root/git-st
diff options
context:
space:
mode:
Diffstat (limited to 'git-st')
-rwxr-xr-xgit-st31
1 files changed, 0 insertions, 31 deletions
diff --git a/git-st b/git-st
deleted file mode 100755
index 8edae3f..0000000
--- a/git-st
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/perl
-
-# git-st -- show git status (but handle binary files correctly)
-
-open $p, '-|', 'git', '-c', 'color.status=always', 'status', @ARGV
- or die "$!\n";
-chomp($g = `git rev-parse --show-toplevel`);
-
-while (<$p>) {
- if (/^Changes not staged for commit:$/ .. /^$/) {
- if (/modified:\s+(.*\.pdf)/) {
- $f = "$ENV{PWD}/$1";
- $f =~ s,^\Q$g\E/?,,;
- $f =~ s/'/'"'"'/g;
- `git-bdiff '$f'`;
- if ($?) {
- $mbuf .= $_;
- $mod = 1;
- }
- } else {
- $mod = 1 if not $mod and /[^t]:\s+/;
- $mbuf .= $_;
- }
- $buf .= $mbuf if /^$/ and $mod;
- } else {
- $buf .= $_;
- }
-}
-
-close $p;
-print $buf;