mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
better git log
This commit is contained in:
parent
5c73cfb5c1
commit
87954b306c
1 changed files with 8 additions and 1 deletions
|
@ -1258,14 +1258,21 @@ GitEngine.prototype.log = function(ref) {
|
|||
var toDump = [];
|
||||
var pQueue = [commit];
|
||||
|
||||
var seen = {};
|
||||
|
||||
while (pQueue.length) {
|
||||
var popped = pQueue.shift(0);
|
||||
if (seen[popped.get('id')]) {
|
||||
continue;
|
||||
}
|
||||
seen[popped.get('id')] = true;
|
||||
|
||||
toDump.push(popped);
|
||||
|
||||
if (popped.get('parents') && popped.get('parents').length) {
|
||||
pQueue = pQueue.concat(popped.get('parents'));
|
||||
}
|
||||
pQueue.sort(this.idSortFunc);
|
||||
// pQueue.sort(this.idSortFunc);
|
||||
}
|
||||
|
||||
// now go through and collect logs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue