• Home
  • Raw
  • Download

Lines Matching full:commit

22     """Dict-like class to read commit metadata"""
25 """Reads commit metadata if missing"""
32 """Creates a commit that disconnects files from source_commit.
37 source_commit: commit hash to disconnect from.
38 ref_commit: commit hash to be a file list reference.
51 """Creates a merge commit that takes files from base_commit.
56 current_commit: commit hashes on where to commit to.
57 base_commit: commit hashes contains file histories.
85 amend_commits: a list of commit hashes to provide actual history.
86 target_commit_hash: commit hash that blames are blaemd on.
91 utils.git_blame(commit, blame_file_path) for commit in amend_commits
95 if blame_combined[0].commit == target_commit_hash
105 - a set of commit hashes in amend_commits tree;
106 - a line-by-line mapping for files in diff to commit hashes in
113 virtual_goal_commit: a commit that contains no useful history for diffs.
114 amend_commits: list of HEAD commit hashes that refers to tree that can
116 commit_choice_cache: caches user choice on which amend commit to use.
117 commit_msg_cache: caches commit metadata.
126 blame_amend.commit for blame_amend in list(blame_line)[1:])
157 commited commit.
161 virtual_goal_commit: commit hash where blame_goal is based on.
171 # directly due to blame commit difference could end up different lineno.
174 blame_base[idx_base].commit == blame_goal[idx_goal].commit):
187 elif blame_goal[idx_goal].commit == virtual_goal_commit:
188 # We skip the line from goal, if the change in not in the commit
196 # preserved because the modified lines are not in the commit we're
212 track_commit: commit hashes to track, and reconstruct from.
216 current_base_commit: commit hashes for HEAD of base that contains base
218 virtual_goal_commit: commit hash for one giant commit that has no
219 history. virtual_goal_commit is one commit ahead of
245 help='disconnect history from this commit')
251 help='base commit to use the history')
267 # - re-create the new goal commit, (base + committed history + (one giant)
269 # - blame on new goal commit and tot of amend commits. map line-by-line
272 # that commit, and create a new commits.
276 # One commit is processed per iteration.
278 # Create virtual target commit, and its diff.
299 # Stablely choose one commit from commits_to_track, and reconstruct it.
301 print('Reconstructing commit %s: %s' %
307 # Mktree and commit with re-constructed_files.
324 # Make last commit for history reconstruction.