summary refs log tree commit diff
path: root/emacs/custom/fcuny-git.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* git: make flymake happyFranck Cuny2022-03-221-53/+7
|
* git: configure sourcegraph for robloxFranck Cuny2022-02-031-3/+3
|
* magit: pull the proper packageFranck Cuny2022-02-031-12/+9
| | | | It looks like these packages were moved to a new one named `git-modes'.
* git: ensure proper mode are usedFranck Cuny2022-02-021-0/+4
|
* emacs: simplify git/magit configurationFranck Cuny2022-01-141-66/+1
| | | | | I don't have to deal with magit anymore, so I can drop all the stuff that removed the VC stuff.
* emacs: different magit setup for work/personalFranck Cuny2021-10-271-40/+61
| | | | | | | | | Work's monorepo is extremely large which is causing performance issues for magit. But there's magit features that I want to use when working on personal projects. Split the configuration between work/personal so that I can still use what I want when working on my projects.
* git: remove old forge configurationFranck Cuny2021-10-071-1/+0
| | | | Let's use HTTPS instead of SSH for all my projects.
* git: configure forge properlyFranck Cuny2021-10-041-1/+2
| | | | | | | | | I'm going to deprecate the SSH endpoint for gitea, and use HTTPS instead for accessing the repositories. For this, I need to configure properly the credential part for the different forges (github/gitea for now), and update the URL in the forge configuration for emacs.
* emacs: add encrypted authinfo resource fileFranck Cuny2021-10-031-0/+1
| | | | Use it with the forge package.
* 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