Garen Torikian
5a944514f3
Rewrite all hash key options
2013-05-01 17:01:55 -07:00
Garen Torikian
9d709ea152
Update git
2013-05-01 17:01:54 -07:00
Garen Torikian
2357f46761
Fix block comments in src
2013-05-01 16:58:43 -07:00
Garen Torikian
bb40ad6177
💄 all the things
2013-04-26 13:49:12 -07:00
Garen Torikian
5ee388cede
Get it to a proper 80%
2013-04-18 18:50:22 -07:00
Garen Torikian
a50cfa26cc
Updates for new biscotto
2013-04-18 13:05:40 -07:00
Garen Torikian
7e5b6bf5c4
Massive updates
2013-04-11 21:11:12 -05:00
Garen Torikian
bb8f5bb40c
Fix errors
2013-04-11 02:29:48 -05:00
Garen Torikian
9432f9703e
Merge master
2013-04-10 15:05:21 -05:00
Kevin Sawicki
f868c0cd4f
Add line diff decorations to editor gutter
...
Added, modified, and deleted lines will now highlighted
in the gutter for files already checked in to the repository.
2013-04-10 12:17:01 -07:00
Garen Torikian
79562f51fd
Some more low hanging fruit
2013-04-10 01:28:50 -05:00
Kevin Sawicki
c9e1f89b60
Upgrade to git-utils 0.12
2013-04-09 12:04:31 -07:00
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
b01a3ff9cc
Release repo when destroy is called
2013-03-17 21:46:26 -05:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07:00
Kevin Sawicki
2ecb2d9ba1
Remove unneeded _.clone call
...
This is no longer needed after upgrading underscore which
fixed a bug with object equality across objects created in
different contexts.
2013-03-11 13:39:54 -07:00
Kevin Sawicki
2212222c47
Use underscore node module
2013-03-11 11:22:36 -07:00
Kevin Sawicki
28f89672d0
Use status helpers from git-utils module
2013-03-09 14:38:04 -08:00
Kevin Sawicki
f3049681bd
Use git-utils module
...
Removes the need to include libgit2 as this is now handled by the
git-utils module which provides functions that were previously in
git.mm and git.coffee
2013-03-09 14:34:06 -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
60c2829af4
Move ahead/behind defaults to Git class
2013-03-04 21:47:21 -08:00
Kevin Sawicki
165dffc15d
Always return array from Git.getLineDiffs()
2013-03-04 21:43:34 -08:00
Kevin Sawicki
c9ef846727
Only replace .git segment if trailing
2013-03-04 21:43:34 -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
1be0b817de
Specify text as second parameter
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
e3ebda7d30
Show commits ahead/behind upstream in status bar
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
3703877ae8
Default status flags to 0
2013-03-04 21:43:34 -08:00
Kevin Sawicki
4384c69dcf
Delete cached statuses unless non-zero
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
77a5f4775a
Show Git status indicators on directories
...
Closes #301
2013-03-04 21:43:33 -08:00
Kevin Sawicki
4fe6db240b
Consolidate Git status checking
...
Now the status bar and tree view both listen for
status change events and use the cached information
available from the git object to update their views.
2013-03-04 21:43:33 -08:00
Kevin Sawicki
94449f772c
Initialize statuses and task variables correctly
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
083562e1aa
Abort status task when destroyed
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
745a3ef9f2
Use class methods to create native object shims
...
CoffeeScript 1.5 complains if a constructor has
a returns a value.
2013-02-27 13:25:10 -08:00
Kevin Sawicki
f730672e9d
Use ? instead of or
2013-02-15 09:56:03 -08:00
Kevin Sawicki
5cd3c04702
Load fuzzy finder paths in web worker at startup
...
Previously the paths were first loaded when the fuzzy finder
view was first attached.
Now a web worker is started when the package activates that
sets the paths on the fuzzy finder view the first time it
displays if the worker has completed by the time an event occurs
that displays the view.
2013-02-02 12:47:46 -08:00
Corey Johnson & Nathan Sobo
74d7d48dcc
Don't make GitRepository a window global
2013-01-24 17:22:49 -08:00
Kevin Sawicki & Nathan Sobo
bb6bed85c6
Raise exception when destroyed repo is accessed
2013-01-09 17:12:15 -08: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
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
f5344080f1
Only compute Git status flags once
...
Previously the status was fetched twice, once for
if modified and once for if new.
Now the flags are fetched once and Git now provides
helpers to check the status flags directly for
modified and new status.
2013-01-07 17:35:57 -08:00