pike.git / bin / export.pike

version» Context lines:

pike.git/bin/export.pike:209:    + missing * "\t\n"    + "\n(you might want to add --force)\n");    return 0;    }    return ret;   }      constant stamp=#"Pike export stamp   time:%t   type:%type + branch:%branch   major:%maj   minor:%min   build:%bld   revision:%rev   source:%src   year:%Y   month:%M   day:%D   hour:%h   minute:%m
pike.git/bin/export.pike:302:    snapshot=1;    break;    }    }       argv -= ({ 0 });    except_modules = (multiset)argv[1..];    if(!srcdir || !export_list || !filename)    exit(1, documentation);    -  if (tag) { +     main_branch = git_cmd("symbolic-ref", "-q", "HEAD");    if (!has_prefix(main_branch, "refs/heads/"))    exit(1, "Unexpected HEAD: %O\n", main_branch);       main_branch = main_branch[sizeof("refs/heads/")..]; -  +  +  if (tag) {    string remote = git_cmd("remote");    if (!sizeof(remote)) remote = 0;    if (remote) git_cmd("pull", "--rebase", remote);       /* Tagging in git is fast, so there's no need to    * do it asynchronously. We also want to perform    * the version bumps back-to-back, to avoid    * ambiguities regarding the stable version.    *    * Note that the tagging is performed in a
pike.git/bin/export.pike:353:    git_cmd("checkout", tag);    }       string revision = git_cmd("rev-list", "-1", "HEAD");    string source = ((git_cmd("ls-tree", "HEAD", "src")/"\t")[0]/" ")[-1];       t = t||time();    mapping m = gmtime(t);    array(int) version = getversion();    mapping symbols=([ +  "%branch": main_branch,    "%maj":(string) version[0],    "%min":(string) version[1],    "%bld":(string) version[2],    "%rev":revision,    "%src":source,    "%type":snapshot?"snapshot":"release",    "%Y":sprintf("%04d",1900+m->year),    "%M":sprintf("%02d",1+m->mon),    "%D":sprintf("%02d",m->mday),    "%h":sprintf("%02d",m->hour),