NeogitOrg / NeogitOrg/neogit

Support for `--bare` git repos

Open
#332 13 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
5.6k
Forks
357
Avg merge
15h 47m
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.

Using git to manage configuration dot files in ones home dir is tricky when trying to version control files directly in one's $HOME dir. This has lead to a common idiom where people use a bare repo for their dot files, e.g. the first 3 matches from a google search:

The problem with this is that one has to manually specify the repo path when peforming git actions, e.g.

git --git-dir=$HOME/.dotfiles --work-tree=$HOME add /some/file.py

Which is usally handled by an alias:

alias config="git --git-dir=$HOME/.dotfiles --work-tree=$HOME"

I love Neogit and would like to be able to use it with my dot files, but as far as I tell, it only works by using your cwd, there is not way to specify which repo to use.

Describe the solution you'd like

An option to dynamically specify the repo to use with Neogit, so one use Neogit as it is currently with the cwd, but also be able to create mappings to open Neogit on a specified repo outside of the cwd (related to #305 ), or oin a bare repo.

Describe alternatives you've considered
Crying

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Neogit's current cwd-based repository selection and review the related #305 discussion; the payload names no files or tests. Done means Neogit still works from the cwd while mappings can select another repository, including a bare dot-files repository.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.