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:
commit
6355baf768
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user