3 08ca3c53 2020-11-30 op This is an **experimental** Emacs VC back-end for the [Game of
4 08ca3c53 2020-11-30 op Tree](http://gameoftrees.org/) version control system.
8 08ca3c53 2020-11-30 op To start using it, you need to add `Got` to `vc-handled-backends` and
9 08ca3c53 2020-11-30 op make sure that `vc-got` is within your `load-path`. You shouldn't
10 08ca3c53 2020-11-30 op require the library.
13 52a18138 2020-12-07 op (add-to-list 'vc-handled-backends 'Got)
16 d06f9880 2020-12-05 op It's highly recommended to add `".got"` to the list of
17 d06f9880 2020-12-05 op `vc-directory-exclusion-list`.
20 52a18138 2020-12-07 op (add-to-list 'vc-directory-exclusion-list ".got")
23 08ca3c53 2020-11-30 op With `use-package` something like this should be enough:
26 08ca3c53 2020-11-30 op (use-package vc-got
27 08ca3c53 2020-11-30 op :load-path "/path/to/vc-got/"
30 52a18138 2020-12-07 op (add-to-list 'vc-handled-backends 'Got)
31 52a18138 2020-12-07 op (add-to-list 'vc-directory-exclusion-list ".got"))
35 9e019413 2021-01-05 op ## Stage hunks
37 9e019413 2021-01-05 op Unlike other VC backends, `vc-got` is able to stage and commit
38 9e019413 2021-01-05 op individual changes. It's still WIP, but usable.
40 9e019413 2021-01-05 op - `vc-got-stage-files` guides the user through the stage process,
41 9e019413 2021-01-05 op like `got stage -p` (or `git add -p`). It operates on the current
42 9e019413 2021-01-05 op file or on the marked ones in `*vc-dir*`
43 9e019413 2021-01-05 op - `vc-got-stage-unstage` is similar, except that it un-stages the
45 9e019413 2021-01-05 op - `vc-got-stage-diff` show the staged diff
46 9e019413 2021-01-05 op - `vc-got-stage-commit` commits the staged changes
48 9e019413 2021-01-05 op Here's an example of the `*vc-dir*` buffer when some edits were staged
51 9e019413 2021-01-05 op ![vc-dir buffer with a staged file](images/vc-dir.png "vc-dir buffer with a staged file")
53 9e019413 2021-01-05 op and an example of the interactive stage operation with
54 9e019413 2021-01-05 op `vc-got-stage-files`
56 9e019413 2021-01-05 op ![interactive stage operation](images/vc-got-stage-files.png
57 9e019413 2021-01-05 op "interactive stage operation")