Branch: Tag:

2012-01-17

2012-01-17 16:01:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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.