githelper.git / githelper.pike

version» Context lines:

githelper.git/githelper.pike:344:    while ((p = search(data, DOLLAR"Id", p))>=0) {    if (data[p..p+3] != unexpanded_id)    return 1;    p += 4;    }    return 0;    }       int check_ident(string filename)    { -  if (find_expanded_ident(get_file(filename))) { +  if (find_expanded_ident(get_file(filename, 1))) {    write("File %s contains an expanded ident.\n", filename);    if(this_program == PreCommitHook) {    write("Try 'git reset %s; git add %s', "    "or remove the ident manually.\n",    @({filename})*2);;    }    return 1;    }    return 0;    }