summary refs log tree commit diff
path: root/emacs/custom/fcuny-git.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* emacs: use default branch for sourcegraphFranck Cuny2021-09-091-2/+9
| | | | | Don't use the current branch when building a link to sourcegraph, as we might be on a feature branch that is not available on the remote.
* emacs: get rid of mapping for sourcegraphFranck Cuny2021-08-241-5/+1
| | | | | | Since the hostname from the git remote is appended to 'sourcegraph.twitter.biz', we can get rid of the mapping and just build the URL using `format`. This simplifies even more the solution.
* emacs: fix mapping for git-link and simplify codeFranck Cuny2021-08-241-14/+5
| | | | | | | | The mapping for git.twitter.biz was incorrect. The package `git-link' has functions to take to format the URL for sourcegraph, we don't need to maintain them on our end, which simplifies a bit the code.
* emacs: git links to sourcegraph for work repoFranck Cuny2021-08-231-18/+26
| | | | | | | | | | | | | | This article [1] shows how to use sourcegraph with the package `git-link'. However, it requires to modify the configuration of the repository to add a new remote named 'git-link'. This is inconvenient, and this can be automated. This change adds a function to automatically generate the remote URL when the remote origin of a repo is set to twitter.biz. We also add the configuration for our own gitea instance. [1] https://sideshowcoder.com/2020/07/02/opening-sourcegraph-from-emacs/
* emacs: use the package `forge'Franck Cuny2021-08-231-0/+8
| | | | | This packages help interacting with various forges. We add a new entry to the default list for our own gitea instance.
* emacs: add function to clone a git repositoryFranck Cuny2021-08-081-0/+8
|
* emacs: use `magit-repos'Franck Cuny2021-03-141-0/+6
| | | | | | | | | The module `magit-repos' can list the status of git repositories under a given path. Since all my repositories are under `~/workspace`, it's easy to use `M-x magit-list-repositories` to get a buffer with all my repositories, and their status (are they dirty, etc).
* emacs: performance improvement for magitFranck Cuny2021-01-061-1/+42
| | | | | | When working with 'source', magit is extremely slow (source is a huge repository, so it's not surprising). We can improve significantly performances by disabling a number of hooks when running git status.
* emacs: rename the directoryFranck Cuny2021-01-041-0/+76