1
1
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:
kahole 2020-08-28 16:21:29 +02:00
parent 67d54513b5
commit 16d9ce7b65
2 changed files with 4 additions and 1 deletions

View File

@ -374,7 +374,7 @@
}
},
"configuration": {
"title": "Magit",
"title": "Edamagit",
"properties": {
"magit.display-buffer-function": {
"type": "string",

View File

@ -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;
}