Skip to content

Commit

Permalink
[git] Fixed duplicated entries for git history on merge operations
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Bozzini <federico.bozzini@gmail.com>
  • Loading branch information
federicobozzini committed Feb 25, 2020
1 parent 2ef80c0 commit c46435a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion packages/git/src/browser/git-scm-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ export class GitAmendSupport implements ScmAmendSupport {
this.repository,
{
range: { toRevision: amendingHeadCommitSha, fromRevision: latestCommitSha },
firstParent: true,
maxCount: 50
}
);
Expand Down
5 changes: 0 additions & 5 deletions packages/git/src/common/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,6 @@ export namespace Git {
* Decides whether the commit hash should be the abbreviated version.
*/
readonly shortSha?: boolean;

/**
* Return only commits reached by following the first parent, giving a linear list of commits.
*/
readonly firstParent?: boolean;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/git/src/node/dugite-git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ export class DugiteGit implements Git {
args.push('--first-parent');
}
const range = this.mapRange((options || {}).range);
args.push(...[range, '-C', '-M', '-m']);
args.push(...[range, '-C', '-M', '-m', '--first-parent']);
const maxCount = options && options.maxCount ? options.maxCount : 0;
if (Number.isInteger(maxCount) && maxCount > 0) {
args.push(...['-n', `${maxCount}`]);
Expand Down

0 comments on commit c46435a

Please sign in to comment.