Commit Graph

83 Commits

Author SHA1 Message Date
John Practicalli 6bdf609421 [git] key bindings to edit magit forge topics
Add Spacemacs style key bindings menu when editing a Magit Forge topic (issue,
pull request)

https://magit.vc/manual/forge.html#Editing-Topics-and-Posts
2022-05-11 19:17:07 +02:00
SpacemacsBot e32acdfadf
[bot] "documentation_updates" Fri Mar 11 06:55:25 UTC 2022 (#15402) 2022-03-11 02:33:47 -05:00
John Practicalli d751c09fab
[git] document configuration of Magit Forge and Git identity (#15388)
Add documentatation to the Spacemacs Git layer describing how to configure basic git identity and more importantly how to configure Magit Forge to access GitHub / GitLab using a machine configuration and an encrypted file to hold the personal access token.
2022-03-11 06:54:23 +00:00
Hans dee70b8486
Fix forge evil keybinds (#15167)
* [git] Fix: Evil-collection @-dispatch keybindings for magit forge.

Load new location for forge '@' dispatch keybindings.

'Evil-collection' has moved keymaps for magit forge from an
'with-eval-after-load' block to newfile 'evil-collection-forge.el' in commit
33461aa545.

As mentioned in the commit, these changes were due to a upstream change in the
'forge' package. Source: https://github.com/emacs-evil/evil-collection/issues/543

* [git] Docs: update README to reflect changes in Forge keybinds.

See https://magit.vc/manual/forge.html#Introduction for more information.
2021-11-19 17:52:11 +01:00
Evan Klitzke 66e509f345 Remove helm-gitignore from git layer.
Related to #15117, this removes the helm-gitignore from the git layer because it
hasn't been updated to use the new git-modes package. The helm-gitignore
functionality isn't particularly useful anyway, it's just a utility to help
generate .gitignore files.

This change can be reverted if the upstream helm-gitignore package is fixed and
people find the functionality it provides to be useful.
2021-11-02 21:45:23 +01:00
Maximilian Wolff af193f769f
[git] Update instructions for global-git-commit-mode 2021-06-09 11:38:15 +02:00
emacspace 95a703b684 documentation formatting: Fri Apr 9 11:56:19 UTC 2021 2021-04-09 21:41:03 +02:00
Lucius Hu dfb4c1c4cb git: Added `magit-todos`, improved docs, etc.
- Added `magit-todos` package, toggled by `git-enable-magit-todos-plugin`.
- Improved installation and loading of all magit-plugins:
  - All magit plugins are toggled by their corresponding layer variables
    PRE-INSTALLATION, instead of PRE-LOADING. That is, they are installed
    only when the toggle is non nil.
  - The `use-package` call is more specific now.
    - Hooks goes to `:hook`.
    - Removed `:defer` since it's implied by `:hook`, and it's actually not
      doing anything.
- Improved the documentation.
2021-04-08 20:41:24 +00:00
Ilya Grigoriev e8976832f8 Restore SPC gfd for magit-diff, set SPC gfm for magit-file-dispatch
Fixes https://github.com/syl20bnr/spacemacs/issues/14434
2021-02-28 20:55:53 +01:00
duianto 3f7e69e0b1 [git][doc] Update magit bindings link
The evil-magit package has been deprecated and moved to:
https://github.com/emacs-evil/evil-collection/tree/master/modes/magit
2021-02-14 19:39:56 +01:00
Fabián Heredia Montiel b2cb7017e0
Move forge form github to git layer
Supports:
- Github (Both .com and enterprise on premises)
- Gitlab (Both .com and self-hosting)
- gogs / gitea
2020-11-16 23:36:59 +01:00
duianto 0d29f15f6c [source-control] Add Git Blame Transient State
Minified hint:
Chunks: n N p P RET Commits: b r f e q

Full hint:
Chunks                   Commits                     Other
[p/P] prev /same commit  [b] adding lines            [c] cycle style
[n/N] next /same commit  [r] removing lines          [Y] copy hash
[RET] show commit        [f] last commit with lines  [B] magit-blame
                         [e] echo                    [Q] quit TS
                         [q] quit blaming
2020-06-07 18:09:18 +02:00
Roman Gonzalez 28f3b6289d Add spacemacs/git-permalink functionality
Context:

When using org files, one normally tends to add Github code links to an
algorithm/bug explanation so that readers are able to follow along with a PR
change.

The current `<SPC> g l L` command gets us the URL to the current branch; given
the code is in flux, the link becomes non-sensical rather quickly, loosing value
when trying to build a document with explanations about the code.

This PR allows us to get the Permalink (e.g. link associated to the commit, not
the branch); using this, the URL contents will never change with new commits
submitted to the repository.

Changes:

  * Add two new functions with associated keybindings:

    - `<SPC> g l p` maps to `spacemacs/git-permalink`

    - `<SPC> g l P` maps to `spacemacs/git-permalink-copy-url-only`

  * The above changes rely on mechanisms of `git-link`, so no new code needs to
    be introduced
2019-10-05 19:19:41 +02:00
emacspace c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
JAremko 5d02b1c4bb Add more tags 2019-05-03 03:44:19 +03:00
emacspace 202da65b1c documentation formatting: Sun Apr 21 20:04:25 UTC 2019 2019-04-22 23:16:20 +02:00
yuhan0 57e47f6210 Update documentation
Also fixes the documentation of the Commit message editing section which had a mistakenly added table
2019-04-21 21:55:52 +02:00
bmag 99b355e2fa Adapt for Magit's move to Transient
Magit now uses Transient instead of magit-popup, and we must adapt. Also had to
replace the recently removed magit-diff-buffer-file-popup with
magit-diff-buffer-file (similar but doesn't offer a popup before displaying the
diff).

Note some upstream packages haven't adapted to this change, but when they do we
might need similar fixes:
- magithub
- magit-gitflow
- magit-svn
2019-02-16 10:21:45 -05:00
syl20bnr 63f9a92348 Revert "Mention breaking change for pull key binding with GitHub and forge"
This reverts commit 36c1291081.
2019-02-16 09:53:34 -05:00
emacspace 03cb987c6d documentation formatting: Sun Jan 20 15:34:11 UTC 2019 2019-01-20 15:45:54 +00:00
Anton-Latukha 059810f31d Fix `magit-repository-directories` documentation 2019-01-20 15:28:28 +02:00
syl20bnr 36c1291081 Mention breaking change for pull key binding with GitHub and forge 2019-01-17 09:01:12 -05:00
emacspace 45276bd96f documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00
emacspace 901f35849a documentation fixes: Tue Oct 23 14:18:21 UTC 2018 2018-10-23 23:38:16 +03:00
JAremko cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
Evan Klitzke 95f276bd21 Add helm-git-grep to the git layer 2018-09-04 00:06:03 +03:00
JAremko 6fef4b7481 Fix git-timemachine link 2018-07-20 02:45:50 +03:00
Codruț Constantin Gușoi e1ae3448e6 Remove whitespace from readme 2018-05-27 22:54:25 +03:00
dh 496eb1db56 cleanup & change keybinding of magit-svn-popup 2018-05-27 22:46:44 +03:00
dh 24ba77e775 install magit-svn by default 2018-05-27 22:46:44 +03:00
dh 8cd8197348 enable magit-svn by default 2018-05-27 22:46:44 +03:00
Ag Ibragimov 5cdfeef2fa git: adds `SPC g f d` - for magit-diff-buffer-file-popup 2018-05-15 01:33:30 +03:00
Ag Ibragimov d691b916cd git: changes `SPC g f h` to `SPC g f l` - for 'git log' of current file 2018-05-15 01:33:30 +03:00
smile13241324 d85eb092d0 Fixed the next bunch of documents
Fix doc for coq, semantic-web, source-control, evil-commentary
and spotify layer.
2018-02-04 06:21:18 +02:00
syl20bnr 82220fce3a Remove old wording "contribution layer" 2017-08-28 11:33:55 -04:00
JAremko 06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
dubnde 2febbbb309 Remove git layer documentation to show submodule prompt
There is no such keybinding(SPC g >) in the source code.
2017-05-24 12:30:14 +02:00
duianto 116c51520e Add a key binding for magit-find-file
problem:  currently, viewing a file at a specific branch/commit, requires one to
          type the magit-find-file command, at the M-x prompt
solution: SPC g f f is available and consistent with the SPC f f key binding
2017-05-18 18:40:34 +02:00
duianto 1ded2f56be Update git doc magit-clone and magit-init 2017-05-18 18:33:33 +02:00
JAremko c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
jc00ke 5d4875b425 Magit: Fix decrease hunk key in README 2017-04-17 21:51:51 -04:00
Robert O'Connor e9ff9f09c6 Remove trailing whitespace from all files 2017-03-26 13:06:43 -04:00
zhexuany 19592f0ad5 fixed syntax highloght in README 2016-11-22 20:41:45 -05:00
Justin Humm 7172cd7170 Fixed dead hyperlink in magit intro 2016-11-20 18:53:31 -05:00
Ryan Phillips cd6b5ed67b add magit-repolist support
fixes #7083
2016-10-17 14:07:58 +02:00
Eivind Fonn 25eb00c24f Update git layer rebase documentation 2016-08-19 10:10:09 +02:00
syl20bnr 0a01159572 git: add SPC g f h to get the commit history of the current file 2016-07-28 23:26:54 -04:00
syl20bnr 316dc0765d git: move git-link to git layer under SPC g l command prefix
git-link is aimed to work with various git hosting services so it makes
sense to move it back to git layer.
2016-07-05 00:23:16 -04:00
syl20bnr b92daec7cf git: remove all popup key binding for magit-dispatch-popup
The `SPC g` command prefix was to much overloaded for actions which
are already available in discoverable manner in magit. So I decided to
remove all the actions reachable from magit-dispatch-popup from `SPC g`.
magit-dispatch-popup is available under `SPC g m`. This increases the
key binding sequences but OTHO it makes everythings consistent (same
key sequence behind `SPC g s` and `SPC g m`) and we prefer consistency.

This refactoring free up a lot of precious key bindings we can use for
commands that are not available in Magit.
2016-07-05 00:23:16 -04:00