|
19 | 19 | */ |
20 | 20 |
|
21 | 21 | define(function (require, exports) { |
| 22 | + const Commands = brackets.getModule("command/Commands"), |
| 23 | + Menus = brackets.getModule("command/Menus"); |
| 24 | + |
22 | 25 | exports.GIT_STRING_UNIVERSAL = "Git"; |
23 | | - exports.GIT_SUB_MENU = "git-submenu"; |
| 26 | + exports.GIT_SUB_MENU = Menus.SubMenuIds.GIT_SUB_MENU; |
24 | 27 |
|
25 | 28 | // Menus |
26 | 29 | exports.GIT_PANEL_CHANGES_CMENU = "git-panel-changes-cmenu"; |
27 | 30 | exports.GIT_PANEL_HISTORY_CMENU = "git-panel-history-cmenu"; |
28 | 31 | exports.GIT_PANEL_OPTIONS_CMENU = "git-panel-options-cmenu"; |
29 | 32 |
|
30 | 33 | // commands |
31 | | - exports.CMD_GIT_INIT = "git-init"; |
32 | | - exports.CMD_GIT_CLONE = "git-clone"; |
33 | | - exports.CMD_GIT_CLONE_WITH_URL = "git-clone-url"; |
34 | | - exports.CMD_GIT_SETTINGS_COMMAND_ID = "git-settings"; |
35 | | - exports.CMD_GIT_CLOSE_UNMODIFIED = "git-close-unmodified-files"; |
36 | | - exports.CMD_GIT_CHECKOUT = "git-checkout"; |
37 | | - exports.CMD_GIT_RESET_HARD = "git-reset-hard"; |
38 | | - exports.CMD_GIT_RESET_SOFT = "git-reset-soft"; |
39 | | - exports.CMD_GIT_RESET_MIXED = "git-reset-mixed"; |
40 | | - exports.CMD_GIT_TOGGLE_PANEL = "git-toggle-panel"; |
41 | | - exports.CMD_GIT_GOTO_NEXT_CHANGE = "git-gotoNextChange"; |
42 | | - exports.CMD_GIT_GOTO_PREVIOUS_CHANGE = "git-gotoPrevChange"; |
43 | | - exports.CMD_GIT_COMMIT_CURRENT = "git-commitCurrent"; |
44 | | - exports.CMD_GIT_COMMIT_ALL = "git-commitAll"; |
45 | | - exports.CMD_GIT_FETCH = "git-fetch"; |
46 | | - exports.CMD_GIT_PULL = "git-pull"; |
47 | | - exports.CMD_GIT_PUSH = "git-push"; |
48 | | - exports.CMD_GIT_REFRESH = "git-refresh"; |
49 | | - exports.CMD_GIT_TAG = "git-tag"; |
50 | | - exports.CMD_GIT_DISCARD_ALL_CHANGES = "git-discard-all-changes"; |
51 | | - exports.CMD_GIT_UNDO_LAST_COMMIT = "git-undo-last-commit"; |
52 | | - exports.CMD_GIT_CHANGE_USERNAME = "git-change-username"; |
53 | | - exports.CMD_GIT_CHANGE_EMAIL = "git-change-email"; |
54 | | - exports.CMD_GIT_GERRIT_PUSH_REF = "git-gerrit-push_ref"; |
55 | | - exports.CMD_GIT_AUTHORS_OF_SELECTION = "git-authors-of-selection"; |
56 | | - exports.CMD_GIT_AUTHORS_OF_FILE = "git-authors-of-file"; |
57 | | - exports.CMD_GIT_TOGGLE_UNTRACKED = "git-toggle-untracked"; |
| 34 | + exports.CMD_GIT_INIT = Commands.CMD_GIT_INIT; |
| 35 | + exports.CMD_GIT_CLONE = Commands.CMD_GIT_CLONE; |
| 36 | + exports.CMD_GIT_CLONE_WITH_URL = Commands.CMD_GIT_CLONE_WITH_URL; |
| 37 | + exports.CMD_GIT_SETTINGS_COMMAND_ID = Commands.CMD_GIT_SETTINGS_COMMAND_ID; |
| 38 | + exports.CMD_GIT_CLOSE_UNMODIFIED = Commands.CMD_GIT_CLOSE_UNMODIFIED; |
| 39 | + exports.CMD_GIT_CHECKOUT = Commands.CMD_GIT_CHECKOUT; |
| 40 | + exports.CMD_GIT_RESET_HARD = Commands.CMD_GIT_RESET_HARD; |
| 41 | + exports.CMD_GIT_RESET_SOFT = Commands.CMD_GIT_RESET_SOFT; |
| 42 | + exports.CMD_GIT_RESET_MIXED = Commands.CMD_GIT_RESET_MIXED; |
| 43 | + exports.CMD_GIT_TOGGLE_PANEL = Commands.CMD_GIT_TOGGLE_PANEL; |
| 44 | + exports.CMD_GIT_GOTO_NEXT_CHANGE = Commands.CMD_GIT_GOTO_NEXT_CHANGE; |
| 45 | + exports.CMD_GIT_GOTO_PREVIOUS_CHANGE = Commands.CMD_GIT_GOTO_PREVIOUS_CHANGE; |
| 46 | + exports.CMD_GIT_COMMIT_CURRENT = Commands.CMD_GIT_COMMIT_CURRENT; |
| 47 | + exports.CMD_GIT_COMMIT_ALL = Commands.CMD_GIT_COMMIT_ALL; |
| 48 | + exports.CMD_GIT_FETCH = Commands.CMD_GIT_FETCH; |
| 49 | + exports.CMD_GIT_PULL = Commands.CMD_GIT_PULL; |
| 50 | + exports.CMD_GIT_PUSH = Commands.CMD_GIT_PUSH; |
| 51 | + exports.CMD_GIT_REFRESH = Commands.CMD_GIT_REFRESH; |
| 52 | + exports.CMD_GIT_TAG = Commands.CMD_GIT_TAG; |
| 53 | + exports.CMD_GIT_DISCARD_ALL_CHANGES = Commands.CMD_GIT_DISCARD_ALL_CHANGES; |
| 54 | + exports.CMD_GIT_UNDO_LAST_COMMIT = Commands.CMD_GIT_UNDO_LAST_COMMIT; |
| 55 | + exports.CMD_GIT_CHANGE_USERNAME = Commands.CMD_GIT_CHANGE_USERNAME; |
| 56 | + exports.CMD_GIT_CHANGE_EMAIL = Commands.CMD_GIT_CHANGE_EMAIL; |
| 57 | + exports.CMD_GIT_GERRIT_PUSH_REF = Commands.CMD_GIT_GERRIT_PUSH_REF; |
| 58 | + exports.CMD_GIT_AUTHORS_OF_SELECTION = Commands.CMD_GIT_AUTHORS_OF_SELECTION; |
| 59 | + exports.CMD_GIT_AUTHORS_OF_FILE = Commands.CMD_GIT_AUTHORS_OF_FILE; |
| 60 | + exports.CMD_GIT_TOGGLE_UNTRACKED = Commands.CMD_GIT_TOGGLE_UNTRACKED; |
58 | 61 | }); |
0 commit comments