Pārlūkot izejas kodu

Uses --simplify-merges instead of --no-merges

main
Eric Amodio pirms 7 gadiem
vecāks
revīzija
d34b97de22
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +5
    -2
      src/git/git.ts

+ 5
- 2
src/git/git.ts Parādīt failu

@ -384,10 +384,13 @@ export class Git {
params.push(`-n${options.maxCount}`);
}
// If we are looking for a specific sha don't exclude merge commits
if (options.skipMerges || !options.ref || options.maxCount! > 2) {
if (options.skipMerges) {
params.push(`--no-merges`);
}
// If we are looking for a specific sha don't simplify merges
else if (!options.ref || options.maxCount! > 2) {
params.push(`--simplify-merges`);
}
else {
params.push(`-m`);
}

Notiek ielāde…
Atcelt
Saglabāt