forked from atom/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint fixture file from git-diff package
- Loading branch information
Showing
18 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
745ed7547d15a61bc4ee7e182615590f44aca201 refs/heads/master |
Empty file.
Empty file.
Binary file removed
BIN
-27 Bytes
...-diff/spec/fixtures/working-dir/git.git/objects/3e/715502b971d4f8282d1e05a8ccfad6f7037910
Binary file not shown.
3 changes: 0 additions & 3 deletions
3
...-diff/spec/fixtures/working-dir/git.git/objects/90/820108a054b6f49c0d21031313244b6f7d69dc
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-81 Bytes
...-diff/spec/fixtures/working-dir/git.git/objects/f1/4149b7b38a0a972c46557877caff6c9fe76476
Binary file not shown.
Binary file removed
BIN
-227 Bytes
...-diff/spec/fixtures/working-dir/git.git/objects/fb/33b0b43b20b7f9de1bca79e192fa2e30dbeb6b
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
packages/git-diff/spec/fixtures/working-dir/git.git/objects/info/packs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
P pack-fb30b46ead026befe94c88f5591a6d3dfdca4e95.pack | ||
|
Binary file added
BIN
+1.35 KB
...xtures/working-dir/git.git/objects/pack/pack-fb30b46ead026befe94c88f5591a6d3dfdca4e95.idx
Binary file not shown.
Binary file added
BIN
+1.1 KB
...tures/working-dir/git.git/objects/pack/pack-fb30b46ead026befe94c88f5591a6d3dfdca4e95.pack
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
packages/git-diff/spec/fixtures/working-dir/git.git/packed-refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# pack-refs with: peeled fully-peeled sorted | ||
745ed7547d15a61bc4ee7e182615590f44aca201 refs/heads/master |
1 change: 0 additions & 1 deletion
1
packages/git-diff/spec/fixtures/working-dir/git.git/refs/heads/master
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
var quicksort = function () { | ||
var sort = function(items) { | ||
if (items.length <= 1) return items; | ||
var pivot = items.shift(), current, left = [], right = []; | ||
while(items.length > 0) { | ||
current = items.shift(); | ||
current < pivot ? left.push(current) : right.push(current); | ||
module.exports.quicksort = function () { | ||
var sort = function (items) { | ||
if (items.length <= 1) return items | ||
var pivot = items.shift() | ||
var current | ||
var left = [] | ||
var right = [] | ||
|
||
while (items.length > 0) { | ||
current = items.shift() | ||
current < pivot ? left.push(current) : right.push(current) | ||
} | ||
return sort(left).concat(pivot).concat(sort(right)); | ||
}; | ||
return sort(left) | ||
.concat(pivot) | ||
.concat(sort(right)) | ||
} | ||
|
||
return sort(Array.apply(this, arguments)); | ||
}; | ||
return sort(Array.apply(this, arguments)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters