chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move stat_exists to Dgit.pm
[dgit.git]
/
dgit
diff --git
a/dgit
b/dgit
index a0144bcde7901c8c702d5a77878f8f841aa29391..ad6289d53411a4ca155484dc48a1699e4ff6f056 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-185,13
+185,6
@@
sub changedir ($) {
chdir $newdir or die "chdir: $newdir: $!";
}
chdir $newdir or die "chdir: $newdir: $!";
}
-sub stat_exists ($) {
- my ($f) = @_;
- return 1 if stat $f;
- return 0 if $!==&ENOENT;
- die "stat $f: $!";
-}
-
sub deliberately ($) {
return !!grep { $_[0] eq $_ } @deliberatelies;
}
sub deliberately ($) {
return !!grep { $_[0] eq $_ } @deliberatelies;
}