mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 10:33:21 +03:00
Float unconflicted files in edit mode
This commit is contained in:
parent
b3e3ebdb34
commit
39f9f50296
@ -123,7 +123,16 @@
|
||||
}
|
||||
|
||||
const files = Array.from(outputMap.values());
|
||||
files.sort((a, b) => a.path.localeCompare(b.path));
|
||||
files.sort((a, b) => {
|
||||
// Float conflicted files to the top
|
||||
if (a.conflicted && !b.conflicted) {
|
||||
return -1;
|
||||
} else if (!a.conflicted && b.conflicted) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return a.path.localeCompare(b.path);
|
||||
});
|
||||
|
||||
return files;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user