Commit Graph

140 Commits

Author SHA1 Message Date
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
Kevin Sawicki
7bfb07a25a Lock on shared NSSpellChecker and use release pool
Closes #335
2013-03-01 10:45:01 -08:00
Kevin Sawicki
9de3a91c9c Correct typos in comment 2013-02-28 15:28:43 -08:00
Kevin Sawicki
1b71796698 Check for escaped backslashes in tag patterns
Previously readtags.c was not checking if the
end pattern / was preceded by an escaped \
which would cause segmentation faults for patterns
that ended with an escaped \.
2013-02-28 14:49:30 -08:00
Kevin Sawicki
a4efc32d45 Display corrections for misspelling on meta-0
A select list will now display with possible corrections
and the misspelling will be replaced when one is selected.
2013-02-27 10:08:02 -08:00
Kevin Sawicki
34ee313ec9 Add native isMisspelled method 2013-02-26 16:55:46 -08:00
Corey Johnson & Kevin Sawicki
ba47e60eeb Synchronize reads of task's stdout/stderr
This ensures that all the available data on standard
out and standard error has been read before the terminate
handler calls the JavaScript callback.

Without this synchronization the command panel specs
occasionally fail.
2013-02-26 09:02:49 -08:00
Kevin Sawicki
e952a68c96 Support setting working directory of child process 2013-02-11 14:53:53 -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
9bff6f63df Delete lines that never should have been there 2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
1b228c75bc Convert Tags to context binding 2013-01-24 17:22:50 -08:00
Corey Johnson & Nathan Sobo
e5c96c7077 Convert OnigScanner to a context binding 2013-01-24 17:22:49 -08:00
Nathan Sobo
df2bb3f75c 💄 2013-01-24 17:22:49 -08:00
Nathan Sobo
2946ba7b9a Convert OnigRegExp from a v8 extension to a window binding 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
f876071ff0 💄 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
1e6e6c4411 Convert git v8 extension to a context binding 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
faaaaec846 Convert atom global to a window binding 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
a5f72c8a2d 💄 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
5294cb6df1 Kill lines I forgot to delete 2013-01-24 17:22:49 -08:00
Nathan Sobo
87829043d4 Use window binding instead of v8 extension for $native object
This paves the way to inject `$native` into the context of a web worker
2013-01-24 17:22:49 -08:00
Kevin Sawicki & Nathan Sobo
2fb27bb2dd Store pathToOpen using new atom.set/getWindowState api
When you use `setWindowState`, your data is saved across refreshes.
You can only store state that can be serialized to JSON.
2013-01-10 18:04:22 -07:00
Kevin Sawicki & Nathan Sobo
caffda6027 Add Git.destroy() that frees native repository 2013-01-09 17:07:29 -08:00
Kevin Sawicki
ba614d5549 Throw error from GitRepository constructor 2013-01-09 11:53:13 -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