Lines Matching full:commit
53 parser.add_argument('-c', '--commit', dest='commit', action='store',
55 help="check if the specified commit (hash) introduces "
87 if args.commit and args.diff:
94 if args.commit or args.diff:
103 if args.commit:
104 if args.commit.startswith('HEAD'):
105 sys.exit("The --commit option can't use the HEAD ref")
125 if args.sim and not args.commit and not args.diff:
137 if args.commit or args.diff:
140 # get commit range
143 if args.commit:
144 commit_a = args.commit + "~"
145 commit_b = args.commit
153 # get undefined items before the commit
157 # get undefined items for the commit
161 # report cases that are present for the commit but not before
199 for commit in commits:
200 commit = commit.split(" ", 1)
201 print("\t- %s (\"%s\")" % (yel(commit[0]), commit[1]))
203 print("\t- no commit found")
207 def reset(commit): argument
208 """Reset current git tree to %commit."""
209 execute(["git", "reset", "--hard", commit])
239 "--abbrev-commit", "-G",
255 """Return commit hash of current HEAD."""