1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-10-26 09:00:54 +03:00

Merge pull request #259 from tzemanovic/log-first-parent-switch

add a switch for log --first-parent
This commit is contained in:
Kristian Andersen Hole 2023-07-11 19:52:15 +02:00 committed by GitHub
commit 6355baf768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,8 @@ const loggingMenu = {
const switches: Switch[] = [
{ key: '-D', name: '--simplify-by-decoration', description: 'Simplify by decoration' },
{ key: '-g', name: '--graph', description: 'Show graph', activated: true },
{ key: '-d', name: '--decorate', description: 'Show refnames', activated: true }
{ key: '-d', name: '--decorate', description: 'Show refnames', activated: true },
{ key: '-p', name: '--first-parent', description: 'First parent', activated: false },
];
const options: Option[] = [
@ -126,6 +127,9 @@ function createLogArgs(switches: Switch[], options: Option[]) {
if (switchMap['-g'].activated) {
args.push(switchMap['-g'].name);
}
if (switchMap['-p'].activated) {
args.push(switchMap['-p'].name);
}
return args;
}