Skip to content

Commit 6812676

Browse files
authored
Merge pull request #340 from intersystems/document-menu
Menu item documentation
2 parents 558b491 + 24ae01e commit 6812676

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ The same right click menus as in Studio live under "Server Source Control..." wh
4545
4646
## Notes
4747
48+
### Menu Options
49+
Documentation for the various git-source-control menu options can be found [here](/docs/menu-items.md).
50+
4851
### Mapping Configuration
4952
To specify where files should go relative to your repository root, add mappings via the "Settings" menu item. A mapping has three parts:
5053
* The file extension to use: e.g., CLS, MAC. As a special case for web application files, use "/CSP/" as the mapping.

docs/menu-items.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# git-source-control Menu Items
2+
3+
4+
## Status
5+
This menu option is analogous to the [git status](https://git-scm.com/docs/git-status) command and prints the status of the repository to the output.
6+
## Settings
7+
This option opens the GUI's settings page project specific git-source-control settings can be configured. This includes the settings that were configured when running:
8+
```
9+
d ##class(SourceControl.Git.API).Configure()
10+
```
11+
12+
This page also includes the mappings configurations.
13+
14+
Any changes made to the settings must be saved using the 'Save' button in order to take effect.
15+
## Launch Git UI
16+
This menu option opens the git-source-control GUI. From here commit messages can be written, files can be staged and committed, branches can be viewed.
17+
## Add
18+
This menu option is analogous to the [git add](https://git-scm.com/docs/git-add) command. It will perform 'git add' on the currently open file, adding it to the files that can be staged.
19+
## Remove
20+
This menu option will only appear if the currently open file has been already added using the 'Add' menu option. It undoes the effect of adding the file, similar to running [git reset](https://git-scm.com/docs/git-reset) on a specific file.
21+
## Push to remote branch
22+
This option pushes the commits in the branch to the remote repository. This exhibits the same behavior as the [git push](https://git-scm.com/docs/git-push) command.
23+
## Fetch from remote
24+
Much like the [git fetch](https://git-scm.com/docs/git-fetch) command, this option fetches the most recent versions of the branch without merging that version into the local copy of the branch.
25+
## Pull changes from remote branch
26+
Much like the [git pull](https://git-scm.com/docs/git-pull) command, this menu option pulls the most recent version of the current branch from a remote source, merging the changes into the local copy.
27+
## Create new branch
28+
This menu option creates a new branch in the repository for changes to be committed to. It also changes the current branch to be the created branch. This mimics the behavior of the [git checkout -b](https://git-scm.com/docs/git-checkout) command.
29+
## Check out an existing branch
30+
This option changes the currently checkout branch to a chosen branch. This mimics the behavior of the [git checkout](https://git-scm.com/docs/git-checkout) command.
31+
## Export all
32+
This option exports class files to the local file tree at the configured location.
33+
## Export all (force)
34+
This option exports all class files regardless of whether they're already up to date in the local file tree or not.
35+
## Import all
36+
This option imports the versions of the files that are found in the configured directory into the project. Files that are out of date or the same as the files in the project won't be imported.
37+
## Import all (force)
38+
This menu option behaves similarly to the regular import but forces the files to be imported regardless of whether the on-disk version is the same or older.

0 commit comments

Comments
 (0)