Commit Graph

132 Commits

Author SHA1 Message Date
joshaber
60c33f6bc9 Open submodules directly instead of searching. 2016-01-19 16:35:36 -07:00
joshaber
50c74499dc Link to the libgit2 issue. 2016-01-19 16:34:30 -07:00
joshaber
514842ca77 If we can't refresh a submodule, drop it. 2016-01-19 11:59:16 -05:00
joshaber
0332c8aab3 Enable thread safety. 2016-01-15 16:33:20 -05:00
joshaber
f30f2c0d62 Try using .getStatusExt instead of .getStatus. 2016-01-15 12:29:00 -05:00
Daniel Hengeveld
9fe2470a05 Merge remote-tracking branch 'remotes/origin/dh-async-repo' into dh-async-repo-relativize-symlinks 2016-01-12 15:59:32 -05:00
Daniel Hengeveld
a35b2c94d0 be more concise, again 2016-01-12 15:54:28 -05:00
Daniel Hengeveld
a9f9cd5b8f Add specs to cover ::relativizeToWorkingDirectory
Yay, this uncovered a problem with the implementation.
2016-01-12 15:32:59 -05:00
joshaber
a7d46e4435 Capture less in .checkoutHeadForEditor. 2016-01-11 21:36:33 -05:00
Daniel Hengeveld
04b4be16aa We don't need to add another param here, actually 2016-01-11 17:43:07 -05:00
joshaber
2f2a0763a2 Log refresh failures. 2016-01-11 15:19:02 -05:00
joshaber
bf4cb2bc73 🔥 refreshingCount. 2016-01-11 15:16:37 -05:00
joshaber
60afd59edc Serialize refreshing. 2016-01-11 15:16:26 -05:00
Daniel Hengeveld
9d4e9cab5b Make linter happy 2016-01-09 12:22:54 -08:00
Daniel Hengeveld
ed64abaede Always relativize to working directory 2016-01-09 12:04:02 -08:00
Daniel Hengeveld
0c839a91fb Keep track of openedPath when relativizing
.. otherwise if the repo root is a symlink, paths won’t relativize to
it and git statuses won’t be updated/shown.
2016-01-09 11:40:09 -08:00
joshaber
11e72d0580 Just Use Or 2016-01-07 17:12:57 -05:00
joshaber
92839a1f4f Test .isSubmodule. 2016-01-07 16:48:28 -05:00
joshaber
565f28dfc4 Update . getCachedUpstreamAheadBehindCount()
Take submodules into account.
2016-01-07 16:36:55 -05:00
joshaber
a79a528fd1 Make .getRepo() submodule-aware. 2016-01-07 16:13:46 -05:00
joshaber
957c8557cc Use Grown Up repositories for submodules. 2016-01-07 15:29:01 -05:00
joshaber
a86d3b6d94 Stop logging. 2016-01-07 12:44:56 -05:00
joshaber
75fe311e22 Refresh the status for submodules too. 2016-01-07 12:19:51 -05:00
joshaber
eedac0a951 We'll store them by path instead of by name. 2016-01-05 17:31:34 -05:00
joshaber
26cd7c63cc s/upstreamByPath/upstream
We’ll track submodule status separately.
2016-01-05 17:10:01 -05:00
joshaber
5045477b5d path is never used. 2016-01-05 15:28:48 -05:00
joshaber
757bbae1e2 s//openNodeGitRepository/openRepository. 2016-01-05 15:26:16 -05:00
joshaber
6bf9d7eb7d Added .openNodeGitRepository 2016-01-04 16:17:16 -05:00
joshaber
a63e30362f Documentation for .DestroyedErrorName 2016-01-04 16:16:50 -05:00
joshaber
b234f8481d We don't actually use repo. 2016-01-04 16:12:22 -05:00
joshaber
a2ab84c3e6 Catch errors that are thrown while we're refreshing. 2016-01-04 13:36:13 -05:00
joshaber
3752f66160 Use .getRepo everywhere. 2016-01-04 13:27:55 -05:00
joshaber
843442a741 So much depends upon a return statement. 2016-01-04 13:25:59 -05:00
joshaber
60fc0acb71 Relativize these paths too. 2016-01-04 13:25:51 -05:00
joshaber
5a7b4562e1 Use a default parameter. 2016-01-04 13:14:02 -05:00
joshaber
e3451090ed We might not have a project. 2016-01-04 12:48:39 -05:00
joshaber
1a35545bd7 _destroyed => _isDestroyed 2016-01-04 12:48:29 -05:00
joshaber
d9b39323cf Fix the openExt call. 2016-01-04 12:20:54 -05:00
joshaber
d8a5418f1e Only refresh the status for the open project. 2016-01-04 12:14:24 -05:00
joshaber
73cb867ccd Do proper path-filtering for status. 2016-01-04 12:14:08 -05:00
joshaber
07eebdccb8 Use .openExt instead of .open.
Use openExt to open the repository so we get the same repo-searching
behavior we had with git-utils.
2016-01-04 11:26:58 -05:00
joshaber
28326b3674 Strip any leading /private/.
I don’t love that we have to do this manually, but I also can’t find
any node function that’ll do it for us :(
2015-12-30 12:11:06 -05:00
joshaber
3af5e8cc18 Fix path standardization on case-sensitive file systems. 2015-12-30 12:10:33 -05:00
joshaber
34ab798362 Added getCachedPathStatuses() 2015-12-29 17:10:09 -05:00
joshaber
f413801836 Remove items that don't have any changes. 2015-12-29 17:10:01 -05:00
joshaber
36f13e6036 #nocontext 2015-12-14 23:29:08 -05:00
joshaber
c4ba2132fa Accumulate the raw data we want instead of keeping hunks around. 2015-12-14 23:29:01 -05:00
joshaber
27afc76455 Fix hunk callback position. 2015-12-14 20:27:10 -05:00
joshaber
8a91bfb209 Be consistent in our path relativization. 2015-12-11 15:34:42 -05:00
joshaber
c1cf5583b4 If there isn't an index entry then it's not a submodule. 2015-12-11 14:48:11 -05:00