mirror of
https://github.com/kahole/edamagit.git
synced 2024-09-11 07:15:31 +03:00
max internal log length and rename magit settings to edamagit
This commit is contained in:
parent
67d54513b5
commit
16d9ce7b65
@ -374,7 +374,7 @@
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"title": "Magit",
|
||||
"title": "Edamagit",
|
||||
"properties": {
|
||||
"magit.display-buffer-function": {
|
||||
"type": "string",
|
||||
|
@ -7,6 +7,9 @@ export default class MagitLogger {
|
||||
public static logGitCommand(args: string[]): MagitProcessLogEntry {
|
||||
const logEntry = { command: ['git', ...args], index: processLog.length };
|
||||
processLog.push(logEntry);
|
||||
if (processLog.length > 100) {
|
||||
processLog.shift();
|
||||
}
|
||||
return logEntry;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user