Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Async Git Repository class #9213

Merged
merged 297 commits into from
Jan 15, 2016
Merged
Changes from 1 commit
Commits
Show all changes
297 commits
Select commit Hold shift + click to select a range
500e77d
Start async spec over in JS
thedaniel Oct 30, 2015
41d3d7a
Start adding the troublesome buffer-events first
thedaniel Oct 30, 2015
9081a89
add status-changed on reload spec
thedaniel Oct 30, 2015
0c965f9
Flesh out ::destroy()
thedaniel Nov 2, 2015
da0b129
Add standardjs config to package.json
thedaniel Nov 3, 2015
47edd1b
Use async’s destroy callback in repo provider.
thedaniel Nov 3, 2015
4f06509
Destroy async repo from sync repo
thedaniel Nov 3, 2015
a8da39b
Merge branch 'master' into dh-async-repo
joshaber Nov 6, 2015
009951e
Get these tests going.
joshaber Nov 6, 2015
d518136
Async/await a lot of things.
joshaber Nov 7, 2015
c076a04
Async harder.
joshaber Nov 7, 2015
247d4d4
Merge branch 'master' into dh-async-repo
joshaber Nov 7, 2015
87da357
Cite it.
joshaber Nov 7, 2015
e2a1337
Merge branch 'master' into dh-async-repo
thedaniel Nov 9, 2015
995d912
remove devDependencies due to license issues
thedaniel Nov 9, 2015
60f9180
add license overrides for shelljs and log-driver
thedaniel Nov 9, 2015
7598be8
Add empty ignore array to standard config
thedaniel Nov 9, 2015
93046f5
Clean up lint errors from `./script/grunt standard:src`
thedaniel Nov 9, 2015
ff4f26e
coffeelint fix
thedaniel Nov 9, 2015
14d470a
unforce spec
thedaniel Nov 9, 2015
bdc8a38
add final buffer event spec
thedaniel Nov 9, 2015
a9dae48
It's better if we actually run the tests.
joshaber Nov 9, 2015
0745348
Merge remote-tracking branch 'origin/dh-async-repo' into dh-async-repo
joshaber Nov 9, 2015
e3af723
Copy relativize and getPathStatus from #9469
thedaniel Nov 9, 2015
0322d8d
Use our own ::relativize
thedaniel Nov 9, 2015
60c6dc4
Merge branch 'dh-async-repo' of github.com:atom/atom into dh-async-repo
thedaniel Nov 9, 2015
d8985c8
await getCachedPathStatus in specs
thedaniel Nov 9, 2015
8f59693
Use asyncIt here too.
joshaber Nov 9, 2015
cbc3dfb
:fire: terribleWait.
joshaber Nov 9, 2015
3d2ed07
Revert "Use our own ::relativize"
thedaniel Nov 9, 2015
371c68e
Revert "await getCachedPathStatus in specs"
thedaniel Nov 9, 2015
4b8bad2
Focus async its.
joshaber Nov 9, 2015
9da71cf
Wait for the first refresh to complete.
joshaber Nov 9, 2015
51b15a6
Cleanup
joshaber Nov 9, 2015
b97a7fb
Unfocus
joshaber Nov 9, 2015
c11f8f7
Re-enable that test.
joshaber Nov 9, 2015
f0283df
Re-add this test.
joshaber Nov 9, 2015
0b378b0
Use node-pre-gyp to grab binaries of nodegit.
joshaber Nov 10, 2015
628e810
Expose the promise for refreshStatus.
joshaber Nov 10, 2015
55cc082
Be even less racy.
joshaber Nov 10, 2015
bfbbbf1
Merge branch 'master' into dh-async-repo
joshaber Nov 10, 2015
7421568
Add simple ::relativize()
thedaniel Nov 11, 2015
c84c5cb
Merge branch 'dh-async-repo' of github.com:atom/atom into dh-async-repo
thedaniel Nov 11, 2015
55a1d3b
Use async repo, add missing return
thedaniel Nov 11, 2015
861d755
i am bad at using GH desktop
thedaniel Nov 11, 2015
2246cca
Fix typo
thedaniel Nov 11, 2015
e7fe7f9
We don't need node-pre-gyp as a dependency.
joshaber Nov 11, 2015
9e2a65a
Add cache config from @joefitzgerald's branch.
thedaniel Nov 11, 2015
d674cbe
Merge branch 'dh-async-repo' of github.com:atom/atom into dh-async-repo
thedaniel Nov 11, 2015
41d73db
Merge branch 'master' into dh-async-repo
joshaber Nov 17, 2015
a8c297e
Don't need these, we'll use the JS one.
joshaber Nov 17, 2015
d54e3f2
Implement the Windows focus refreshing.
joshaber Nov 17, 2015
8c47335
ES6 harder.
joshaber Nov 17, 2015
3a06953
Merge branch 'master' into dh-async-repo
joshaber Nov 30, 2015
e1aa23b
Const and comparison fixes.
joshaber Nov 30, 2015
9765cb5
Merge branch 'master' into dh-async-repo
joshaber Dec 1, 2015
ee3b655
git-repository will refresh us on window focus.
joshaber Dec 1, 2015
c76d0f0
Update the current branch as well.
joshaber Dec 1, 2015
64d4716
Use modern imports.
joshaber Dec 1, 2015
24b8fcf
Gimme the linters.
joshaber Dec 1, 2015
cf30f39
These are fine.
joshaber Dec 1, 2015
f290596
Remove some lint.
joshaber Dec 1, 2015
4e64af9
ES6 some more.
joshaber Dec 1, 2015
f6a0045
License overrides.
joshaber Dec 1, 2015
5019cc3
These can be const too.
joshaber Dec 1, 2015
4559936
More const'ing.
joshaber Dec 1, 2015
5fa8d6d
Update the overrides.
joshaber Dec 1, 2015
ca2fc8d
Make sure we're testing the right thing.
joshaber Dec 1, 2015
3660414
Let's use a separate method for side-effecting.
joshaber Dec 1, 2015
db7a306
Call destroy on the synchronous repo.
joshaber Dec 2, 2015
c9813d8
Ensure the repo is destroyed properly after testing.
joshaber Dec 2, 2015
8a6ab81
100% less racy.
joshaber Dec 2, 2015
aa31c6c
Don't log anymore.
joshaber Dec 2, 2015
38cf3b8
Use refreshStatusForBuffer.
joshaber Dec 2, 2015
11fb508
:fire: all the disabled tests.
joshaber Dec 2, 2015
fb7f2cc
These may be called more than once and that's ok.
joshaber Dec 2, 2015
e8a5864
Do the work after waiting.
joshaber Dec 2, 2015
6c58550
Of course it's JS.
joshaber Dec 2, 2015
d0b148a
Call the better-named method.
joshaber Dec 2, 2015
bb14169
Take refreshStatusForPath into account for _refreshingCount.
joshaber Dec 2, 2015
3ca4448
Use the ES6 export syntax.
joshaber Dec 2, 2015
428797c
Add back window refreshing.
joshaber Dec 2, 2015
fe4d360
Organize similarly to git-repository.coffee so we can more easily tel…
joshaber Dec 2, 2015
aa63457
Added getShortHead
joshaber Dec 2, 2015
cb62d91
Added getAheadBehindCount.
joshaber Dec 2, 2015
8da0872
Added getDiffStats.
joshaber Dec 3, 2015
a3a7718
More helpful type annotations.
joshaber Dec 3, 2015
81dbc5c
Move the refreshingCount changes closer to where the work is done.
joshaber Dec 3, 2015
9bb8703
Don't make the async repo duplicate the work if it's wrapped by a syn…
joshaber Dec 3, 2015
46d6e3b
Added .hasBranch
joshaber Dec 3, 2015
b60056f
Added .getUpstreamBranch
joshaber Dec 3, 2015
c1e5119
Added .getReferences
joshaber Dec 3, 2015
7060177
Added .getReferenceTarget
joshaber Dec 3, 2015
74a0528
Added .getConfigValue
joshaber Dec 3, 2015
df83953
A lil more efficient .getReferenceTarget.
joshaber Dec 3, 2015
d21a91a
Added .getOriginalURL.
joshaber Dec 3, 2015
c3adee6
Add some more stubs/TODOs.
joshaber Dec 3, 2015
53be0cf
Added .checkoutReference
joshaber Dec 3, 2015
4fbbcac
Added .getLineDiffs
joshaber Dec 3, 2015
cea6926
Set IGNORE_WHITESPACE_EOL on Windows.
joshaber Dec 3, 2015
0adf251
Merge branch 'master' into dh-async-repo
joshaber Dec 4, 2015
0e3bb42
Use some binaries, hopefully?
joshaber Dec 4, 2015
7691107
Added license override for inherit.
joshaber Dec 4, 2015
f5f2cd3
Use nodegit-atom for now.
joshaber Dec 7, 2015
09bd603
Don't set these here.
joshaber Dec 7, 2015
8514cb1
Do the needful to get Electron binaries.
joshaber Dec 7, 2015
752b266
Use the same version as The Real Nodegit.
joshaber Dec 7, 2015
ed357b1
++nodegit
joshaber Dec 7, 2015
7da15be
++nodegit
joshaber Dec 9, 2015
538ff83
Merge branch 'master' into dh-async-repo
joshaber Dec 9, 2015
0baf653
Provide these from .npmrc.
joshaber Dec 9, 2015
f3cfb5d
Merge branch 'master' into dh-async-repo
joshaber Dec 9, 2015
9d70954
Merge branch 'master' into dh-async-repo
joshaber Dec 9, 2015
b810a8b
Get the Electron version from the package.
joshaber Dec 9, 2015
ab94103
Back to putting them in the npmrc.
joshaber Dec 10, 2015
cdf1029
It's fine if there isn't an upstream.
joshaber Dec 10, 2015
276f654
Merge branch 'master' into dh-async-repo
joshaber Dec 10, 2015
f0a9c5d
Just use the repo declared above.
joshaber Dec 10, 2015
46d59fd
Fix usage when we're given no options.
joshaber Dec 10, 2015
4711d03
Tests for .checkoutHeadForEditor.
joshaber Dec 10, 2015
7f19cd4
Throw if we try to use the repository after it's been destroyed.
joshaber Dec 10, 2015
86e39a2
Test .destroy().
joshaber Dec 10, 2015
e867b68
Match the ordering of the GitRepository spec.
joshaber Dec 10, 2015
352f406
Add a whole ton of missing documentation.
joshaber Dec 10, 2015
bea7ce5
Merge branch 'master' into dh-async-repo
joshaber Dec 10, 2015
abf5697
Delint
joshaber Dec 10, 2015
4760650
We want the booleans.
joshaber Dec 10, 2015
be964ab
Ensure we actually do give them a boolean.
joshaber Dec 10, 2015
1a04c5a
Be more specific in our error names.
joshaber Dec 10, 2015
bc14c28
Use the usual name.
joshaber Dec 10, 2015
0794ea3
Tinker tailor soldier spy.
joshaber Dec 10, 2015
5302fb8
Better test name.
joshaber Dec 10, 2015
fcf8581
Put this constant with the others.
joshaber Dec 10, 2015
3e73443
Fix the documentation style.
joshaber Dec 10, 2015
4916a2e
:doughnut: need this.
joshaber Dec 10, 2015
0c42747
Just Use Clone.
joshaber Dec 10, 2015
15ab4b2
Merge branch 'master' into dh-async-repo
joshaber Dec 10, 2015
3ccf186
This can be local.
joshaber Dec 10, 2015
dba698f
Define a constant for this.
joshaber Dec 10, 2015
c538330
If we don't have a project then we're not at the root.
joshaber Dec 10, 2015
35768f8
Merge branch 'master' into dh-async-repo
joshaber Dec 10, 2015
81d4f06
And that's why we write tests.
joshaber Dec 11, 2015
976fe0f
Linter
joshaber Dec 11, 2015
b9f5853
Const.
joshaber Dec 11, 2015
d14603c
Use `some` instead.
joshaber Dec 11, 2015
5d87002
Use the functions.
joshaber Dec 11, 2015
c1cf558
If there isn't an index entry then it's not a submodule.
joshaber Dec 11, 2015
3117284
Merge branch 'master' into dh-async-repo
joshaber Dec 11, 2015
8a91bfb
Be consistent in our path relativization.
joshaber Dec 11, 2015
27afc76
Fix hunk callback position.
joshaber Dec 15, 2015
c4ba213
Accumulate the raw data we want instead of keeping hunks around.
joshaber Dec 15, 2015
36f13e6
#nocontext
joshaber Dec 15, 2015
4c0f103
Merge branch 'master' into dh-async-repo
joshaber Dec 15, 2015
b464916
Merge branch 'master' into dh-async-repo
joshaber Dec 15, 2015
4024ea9
Fix the test.
joshaber Dec 15, 2015
1c01d05
Try running core specs on appveyor.
joshaber Dec 15, 2015
d98bbb1
Enable tests on windows.
joshaber Dec 15, 2015
013fcf1
Revert "Enable tests on windows."
joshaber Dec 15, 2015
3f64477
Revert "Try running core specs on appveyor."
joshaber Dec 15, 2015
a048134
Merge branch 'master' into dh-async-repo
joshaber Dec 15, 2015
5c77eff
Always set the architecture to ia32 on Windows.
joshaber Dec 15, 2015
50e1095
Merge branch 'master' into dh-async-repo
joshaber Dec 28, 2015
ed92db1
Provide messages for all these steps.
joshaber Dec 28, 2015
8ac72db
Get the Electron version from our package.json.
joshaber Dec 28, 2015
11180ce
Syntax
joshaber Dec 28, 2015
71bf3a7
How about this.
joshaber Dec 28, 2015
91ff907
Just pass through the environment.
joshaber Dec 28, 2015
2ccbdee
These commands will log, so no need to do it ourselves.
joshaber Dec 28, 2015
9773adc
Not an object anymore.
joshaber Dec 28, 2015
f23d933
Try passing them as args.
joshaber Dec 28, 2015
be9d74a
Back to using npmrc.
joshaber Dec 28, 2015
1eceae9
Once more, with feeling.
joshaber Dec 28, 2015
bf0f6af
Log the environment.
joshaber Dec 28, 2015
a7ba6c8
Try args again.
joshaber Dec 28, 2015
666958d
Try just setting the target?
joshaber Dec 28, 2015
f04fee2
Comment why.
joshaber Dec 28, 2015
f413801
Remove items that don't have any changes.
joshaber Dec 29, 2015
34ab798
Added getCachedPathStatuses()
joshaber Dec 29, 2015
3af5e8c
Fix path standardization on case-sensitive file systems.
joshaber Dec 30, 2015
28326b3
Strip any leading /private/.
joshaber Dec 30, 2015
449c1e6
Merge branch 'master' into dh-async-repo
joshaber Jan 4, 2016
07eebdc
Use .openExt instead of .open.
joshaber Jan 4, 2016
73cb867
Do proper path-filtering for status.
joshaber Jan 4, 2016
d8a5418
Only refresh the status for the open project.
joshaber Jan 4, 2016
d9b3932
Fix the openExt call.
joshaber Jan 4, 2016
1a35545
_destroyed => _isDestroyed
joshaber Jan 4, 2016
e345109
We might not have a project.
joshaber Jan 4, 2016
5a7b456
Use a default parameter.
joshaber Jan 4, 2016
60fc0ac
Relativize these paths too.
joshaber Jan 4, 2016
843442a
So much depends upon a return statement.
joshaber Jan 4, 2016
3752f66
Use .getRepo everywhere.
joshaber Jan 4, 2016
a2ab84c
Catch errors that are thrown while we're refreshing.
joshaber Jan 4, 2016
b234f84
We don't actually use `repo`.
joshaber Jan 4, 2016
a63e303
Documentation for .DestroyedErrorName
joshaber Jan 4, 2016
6bf9d7e
Added .openNodeGitRepository
joshaber Jan 4, 2016
b8b2c88
Merge branch 'master' into dh-async-repo
joshaber Jan 5, 2016
6b4a054
Commas are important.
joshaber Jan 5, 2016
24db458
Merge branch 'master' into dh-async-repo
joshaber Jan 5, 2016
757bbae
s//openNodeGitRepository/openRepository.
joshaber Jan 5, 2016
5045477
path is never used.
joshaber Jan 5, 2016
e060cfe
Merge branch 'master' into dh-async-repo
joshaber Jan 5, 2016
51bf940
:arrow_up: nodegit@0.6.3
joshaber Jan 5, 2016
26cd7c6
s/upstreamByPath/upstream
joshaber Jan 5, 2016
eedac0a
We'll store them by path instead of by name.
joshaber Jan 5, 2016
6c4d97d
Merge branch 'master' into dh-async-repo
joshaber Jan 6, 2016
75fe311
Refresh the status for submodules too.
joshaber Jan 7, 2016
a86d3b6
Stop logging.
joshaber Jan 7, 2016
0bef58a
Added a fixture that has submodules.
joshaber Jan 7, 2016
dcb9371
Test it.
joshaber Jan 7, 2016
957c855
Use Grown Up repositories for submodules.
joshaber Jan 7, 2016
a79a528
Make .getRepo() submodule-aware.
joshaber Jan 7, 2016
565f28d
Update . getCachedUpstreamAheadBehindCount()
joshaber Jan 7, 2016
d2d5966
More tests for the submodule cases.
joshaber Jan 7, 2016
92839a1
Test .isSubmodule.
joshaber Jan 7, 2016
11e72d0
Just Use Or
joshaber Jan 7, 2016
cfb44c3
:arrow_up: grunt-standard@2.0.0
joshaber Jan 7, 2016
6948dd4
Linter was mad about these now.
joshaber Jan 7, 2016
755826b
:arrow_up: babel-eslint@5.0.0-beta6
joshaber Jan 7, 2016
84e78f5
Merge pull request #10327 from atom/submodules
joshaber Jan 8, 2016
2dd5cb6
Merge branch 'master' into dh-async-repo
joshaber Jan 8, 2016
0c839a9
Keep track of openedPath when relativizing
thedaniel Jan 9, 2016
ed64aba
Always relativize to working directory
thedaniel Jan 9, 2016
9d4e9ca
Make linter happy
thedaniel Jan 9, 2016
38616e9
:arrow_up: node-git@0.7.0
joshaber Jan 11, 2016
07be6d5
Merge branch 'master' into dh-async-repo
joshaber Jan 11, 2016
27de156
Merge branch 'master' into dh-async-repo
joshaber Jan 11, 2016
60afd59
Serialize refreshing.
joshaber Jan 11, 2016
bf4cb2b
:fire: refreshingCount.
joshaber Jan 11, 2016
b661d41
Use the promise from refreshStatus to know when we're done.
joshaber Jan 11, 2016
2f2a076
Log refresh failures.
joshaber Jan 11, 2016
04b4be1
We don't need to add another param here, actually
thedaniel Jan 11, 2016
c22a684
Make sure the editor disappears quickly.
joshaber Jan 12, 2016
a7d46e4
Capture less in .checkoutHeadForEditor.
joshaber Jan 12, 2016
bd8b26a
Don't use require.resolve.
joshaber Jan 12, 2016
1d18ccc
Merge branch 'master' into dh-async-repo
joshaber Jan 12, 2016
a9f9cd5
Add specs to cover ::relativizeToWorkingDirectory
thedaniel Jan 12, 2016
a35b2c9
be more concise, again
thedaniel Jan 12, 2016
9fe2470
Merge remote-tracking branch 'remotes/origin/dh-async-repo' into dh-a…
thedaniel Jan 12, 2016
1cde8f8
Annotate waitsFor in a couple flaky specs
thedaniel Jan 12, 2016
2ad8f0e
Add a few failure messages to waitsFors in flaky specs
thedaniel Jan 13, 2016
f3a6f2e
Merge branch 'master' into dh-async-repo
joshaber Jan 14, 2016
d6cd292
Merge branch 'master' into dh-async-repo
joshaber Jan 14, 2016
74d94ae
Merge branch 'master' into dh-async-repo
joshaber Jan 14, 2016
411a80d
Merge remote-tracking branch 'remotes/origin/dh-async-repo' into dh-a…
thedaniel Jan 14, 2016
4fff622
Add option for custom label to waitsForPromise
thedaniel Jan 15, 2016
281d6a6
Don't let label be null
thedaniel Jan 15, 2016
f30f2c0
Try using .getStatusExt instead of .getStatus.
joshaber Jan 15, 2016
fb5b3f0
:fire: some lint.
joshaber Jan 15, 2016
7d9ed01
Merge pull request #10352 from atom/dh-async-repo-relativize-symlinks
joshaber Jan 15, 2016
7cfb8a3
Merge branch 'master' into dh-async-repo
joshaber Jan 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into dh-async-repo
  • Loading branch information
joshaber committed Jan 15, 2016
commit 7cfb8a320782ba98e296b1ae6c1169c6c17e5c2a

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.