25 matches across 1 files for error path:.github/tools/git-restore-mtime path:.github/tools/git-restore-mtime
snippet_mode: grep · sorted by relevance
.github/tools/git-restore-mtime #! 25 matches · showing 5 view file →
67
68if __name__ != "__main__":
69 raise ImportError("{} should not be used as a module.".format(__name__))
70
71import argparse
· · ·
313 try:
314 cwd = os.path.dirname(os.path.realpath(__file__))
315 return Git(cwd=cwd, errors=False).describe().lstrip("v")
316 except Git.Error:
317 return "-".join((version, "unknown"))
· · ·
316 except Git.Error:
317 return "-".join((version, "unknown"))
318
· · ·
407
408class Git:
409 def __init__(self, workdir=None, gitdir=None, cwd=None, errors=True):
410 self.gitcmd = ["git"]
411 self.errors = errors
· · ·
411 self.errors = errors
412 self._proc = None
413 if workdir:
+ 20 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.