Commit Graph

28 Commits

Author SHA1 Message Date
Nathan Sobo
f03b6207de Make all requires of 'fs-utils' assign to fsUtils var instead of fs 2013-04-03 12:01:37 -06:00
Kevin Sawicki & Nathan Sobo
051decc08c Use fs.resolveOnLoadPath() instead of require.resolve() 2013-03-12 14:42:24 -07:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1 Use node's require instead of internal require 2013-03-12 10:38:05 -07:00
Nathan Sobo
96fefe94f0 Fix broken specs after rebase 2013-03-07 09:30:29 -08:00
Kevin Sawicki
8af55a04d8 Use a single worker for status refreshes
There still appear to be crashes occurring when
using libgit2 from multiple workers at the same time.

So only start a new status worker once the current one
completes if a refresh was requested while a worker was
running.

Closes #367
2013-03-06 14:59:12 -08:00
Kevin Sawicki
c14aa3b86f Default status to 0 if undefined
This keeps the status-changed event from triggering
the first time the status is requested as it goes
from undefined to 0 which should be treated as no
change.
2013-03-04 21:43:34 -08:00
Kevin Sawicki
3852b7212b Remove git-status-changed event from Buffer
This is now fired as a status-changed event from
the Git class when the checkout completes normally
and the status of the path changes.
2013-03-04 21:43:33 -08:00
Kevin Sawicki
68b61d71c6 Trigger event when path status changes 2013-03-04 21:43:32 -08:00
Kevin Sawicki
c6e89d33f8 Git.refreshStatuses() -> Git.refreshStatus() 2013-03-04 21:43:32 -08:00
Kevin Sawicki
50bc1aac74 Add task to refresh status of repository
By default this will occur when the window gains
focus and the Git class can now be subscribed to
so listeners can become notified when the status
of a repository changes.
2013-03-04 21:43:32 -08:00
Kevin Sawicki
4add7b6213 Support getting status of entire repository
New Git.getAllStatuses() method returns all non-ignored
status entries in the repository.
2013-03-04 21:43:32 -08:00
Corey Johnson
595cf71d93 Return absolute path for Git repo 2013-03-01 13:54:19 -08:00
Kevin Sawicki
4cfd2b41fb Destroy repo in an afterEach in Git specs 2013-02-15 09:56:04 -08:00
Kevin Sawicki
092e5214d0 Add spec for Git.getDiffStats(path) 2013-02-15 09:56:03 -08:00
Kevin Sawicki & Nathan Sobo
bb6bed85c6 Raise exception when destroyed repo is accessed 2013-01-09 17:12:15 -08:00
Kevin Sawicki
ba614d5549 Throw error from GitRepository constructor 2013-01-09 11:53:13 -08:00
Kevin Sawicki
8d0d62b486 Add Git.open that returns null on exceptions 2013-01-08 21:15:42 -08:00
Kevin Sawicki
6f5e29d48e Throw exception when repository fails to open
Removes need to check if the repository is valid before
each native API call and also removes calling into the
native-side if no repository can be opened for the project
page.
2013-01-08 21:15:41 -08:00
Kevin Sawicki
1019154db6 Add Git.checkoutHead(path) 2012-11-03 15:09:52 -07:00
Corey Johnson & Kevin Sawicki
be533d4342 Add Git.isPathNew(path)
Renamed other method to Git.isPathModified
2012-11-02 15:36:35 -07:00
Corey Johnson
81fc8d417d Add Git.isModified(path) 2012-11-02 15:35:21 -07:00
Kevin Sawicki
6618e6ac5f Use /tmp paths for non-repo specs 2012-11-02 15:33:39 -07:00
Kevin Sawicki
90126d1a9b 💄 2012-11-02 15:33:39 -07:00
Kevin Sawicki
f5db2b63d8 Add specs for Git.isIgnored 2012-11-02 15:33:38 -07:00
Kevin Sawicki
a9baf54707 Update git specs for latest libgit2 build 2012-11-02 15:33:38 -07:00
Kevin Sawicki
8e8ab4ff94 Add getPath helper 2012-11-02 15:33:37 -07:00
Kevin Sawicki
cbba58c30e 💄 2012-11-02 15:33:37 -07:00
Kevin Sawicki
b029bacc03 Add initial git specs 2012-11-02 15:33:37 -07:00