Kevin Sawicki
9fe1be7fe0
Add parens around string length
2013-03-07 08:54:29 -08:00
Kevin Sawicki
d509195aab
Free keys when config open fails
2013-03-07 08:34:05 -08:00
Kevin Sawicki
91347f14f2
Build libgit2 with thread safe option enabled
2013-03-05 14:27:19 -08:00
Kevin Sawicki
464aed92cb
Don't return before freeing references
2013-03-04 22:04:13 -08:00
Kevin Sawicki
eb00623807
Return null when no merge base is found
2013-03-04 21:56:14 -08:00
Kevin Sawicki
a389d57219
Remove unneeded null terminators
...
These are already added by sprintf
2013-03-04 21:43:35 -08:00
Kevin Sawicki
11b5fc14dc
Check that remote length is non-zero
2013-03-04 21:43:35 -08:00
Kevin Sawicki
5005aa0c7c
Add null terminator to upstream branch string
2013-03-04 21:43:35 -08:00
Kevin Sawicki
673e8c948f
Prevent repository config from leaking
2013-03-04 21:43:35 -08:00
Kevin Sawicki
060ed27a2f
Set context lines to 1 for line diffs
2013-03-04 21:43:34 -08:00
Kevin Sawicki
885da83df2
💄
2013-03-04 21:43:34 -08:00
Kevin Sawicki
14a73337ce
Remove unused diff options
2013-03-04 21:43:34 -08:00
Kevin Sawicki
72851486d8
💄
2013-03-04 21:43:34 -08:00
Kevin Sawicki
ab5043f890
Add method to get line diffs for path and text
2013-03-04 21:43:34 -08:00
Kevin Sawicki
fd82f3f8a4
Add method to get ahead/behind commit counts
2013-03-04 21:43:34 -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
probablycorey
d6309ec31c
Add autorelease pool wrappers around CefV8Handler::Execute methods
...
This removes all BlahBlahBlah was not autoreleased console warnings.
2013-03-01 15:01:14 -08:00
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