pike.git/
lib/
modules/
Git.pmod/
Export.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2012-01-17
2012-01-17 16:01:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>
551c40a96ee74e86fb28e963a7d89649a2bc5d52 (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Git.Export: export() now survives nonexisting files.
383:
//! Name of the file in git. Defaults to @[file_name]. void export(string file_name, string|void git_name) {
-
int
mode
= file_stat(file_name)->mode;
+
Stdio.Stat
st
= file_stat(file_name)
;
+
if (!st) return;
+
int mode = st
->mode;
if (mode & Git.MODE_DIR) { mode = Git.MODE_DIR; } else if (mode & 0111) { Newline at end of file added.