Nathan Sobo
f22fedebcf
Inject new instances of native objects into every JS context
...
This prevents concurrent access to the same state from different
worker threads. We needed to treat windowState specially because we
explicitly want it to last beyond the life-span of a single context.
So we store it as a static variable in `native.mm` and synchronize
access with a static `NSLock`. Good enough for now.
2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
1e6e6c4411
Convert git v8 extension to a context binding
2013-01-24 17:22:49 -08:00
Kevin Sawicki & Nathan Sobo
caffda6027
Add Git.destroy() that frees native repository
2013-01-09 17:07:29 -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
c4f82c8db5
Update libgit2 to commit 11fccddcb5
...
Closes #122
2013-01-08 17:43:30 -08:00
Kevin Sawicki
fffba45b50
💄
2013-01-07 19:36:13 -08:00
Kevin Sawicki
146ae9d776
Refresh the Git index when the window gains focus
...
Closes #121
2013-01-07 17:29:48 -08:00
Kevin Sawicki
df309c80dc
Use switch statement for line types
2013-01-06 11:04:59 -08:00
Kevin Sawicki
64afd51ca4
Use constant for submodule file mode
2013-01-06 09:59:57 -08:00
Kevin Sawicki
a300146f2a
Display submodule icon in tree-view
2013-01-06 09:52:53 -08:00
Kevin Sawicki
b855799d96
Return null unless exactly 1 delta exists
2013-01-04 14:59:41 -08:00
Kevin Sawicki
f1efc9ce60
Upgrade to latest libgit2 development branch
2013-01-04 14:57:14 -08:00
Kevin Sawicki
d328db65f2
Free path after generating diff list
2012-12-27 10:54:06 -08:00
Kevin Sawicki
a561d5efab
Only create diff options when necessary
2012-12-27 10:53:13 -08:00
Kevin Sawicki
d3ed0fca27
Free reference before returning result
2012-12-27 10:51:35 -08:00
Kevin Sawicki
219aaca0f5
Show diff stat in status bar
...
Include the number of lines added and removed for
new and modified files
2012-12-27 10:41:29 -08:00
Kevin Sawicki
c78ccf3ede
Read index before checking status
2012-12-10 11:47:26 -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
999a74ec2c
Add $git.getStatus(path)
2012-11-02 15:35:21 -07:00
Corey Johnson
13be2ea607
💄
2012-11-02 15:35:21 -07:00
Kevin Sawicki
a934c5502f
Remove unneeded import
2012-11-02 15:33:39 -07:00
Kevin Sawicki
8bfe7b770f
💄
2012-11-02 15:33:39 -07:00
Kevin Sawicki
46e3ec17be
Use int instead of int*
2012-11-02 15:33:38 -07:00
Kevin Sawicki
8195206d04
Check that pointer
2012-11-02 15:33:38 -07:00
Kevin Sawicki
f5db2b63d8
Add specs for Git.isIgnored
2012-11-02 15:33:38 -07:00
Kevin Sawicki
20c69118ff
Decorate ignored files/folders in tree-view
2012-11-02 15:33:38 -07:00
Kevin Sawicki
9ec1a2c406
💄
2012-11-02 15:33:37 -07:00
Kevin Sawicki
8e8ab4ff94
Add getPath helper
2012-11-02 15:33:37 -07:00
Kevin Sawicki
34bf39e364
Take char* path in constructor
2012-11-02 15:33:07 -07:00
Kevin Sawicki
a3ef53f8e6
Return repository for all paths
2012-11-02 15:33:07 -07:00
Kevin Sawicki
4c80b1e4ef
💄
2012-11-02 15:33:07 -07:00
Kevin Sawicki
8831c2a2dc
Return SHA-1 when HEAD is detached
2012-11-02 15:31:10 -07:00
Kevin Sawicki
14302c491d
Show current branch in status bar
2012-11-02 15:31:10 -07:00
Kevin Sawicki
1b42bd9662
Add $git.isRepository
2012-11-02 15:30:06 -07:00
Kevin Sawicki
17c3621853
Add native Git v8 extension
2012-11-02 15:30:06 -07:00