Questions tagged [magit]

is an Emacs extension for the Git version control system.

Filter by
Sorted by
Tagged with
2
votes
1answer
112 views

Font-lock for strings messes up non-code buffers

In Magit buffers, or helm-swoop, an unclosed double quote enables the string highlighting for the rest of the buffer (until another quote is found). This is how it looks like: Because of that, I also ...
2
votes
1answer
406 views

How to control which window is opened as “other Window”?

I am new to Magit and Spacemacs. I do not understand descriptions of other-window and next-window in the manual. I have 4 windows open in a Spacemacs frame like this: +--+--+ | | | +--+--+ | | | ...
2
votes
1answer
224 views

How to log file following all renames?

I upgraded to recently released Magit 2. There is a command magit-log-buffer-file. However, it logs file without --follow option, which makes it quite pointless for me (in our source code nearly ...
2
votes
1answer
232 views

“C:/c/user/…my-folder/ isn't an existing directory” error

I use Emacs 24.5.1 with Spacemacs and added Msys2 to the exec-path to use git.exe When I run 'Magit-status' I get the following error: C:/c/user/...my-folder/ isn't an existing directory. I can see ...
1
vote
2answers
167 views

How to customize a magit popup, conditionally on the state of the repository?

In response to a question about adding an action to magit's push menu, I've written an Emacs Lisp command to implement the extension, and I've learned that I can extend the push menu by calling magit-...
1
vote
1answer
41 views

Can magit stage a hunk / selected lines in 'diff-mode'?

Is it possible to stage the current hunk or selected lines of the hunk in diff-mode? For example, when in diff-mode, what command can I run to stage the current hunk?
1
vote
1answer
206 views

How to revert buffer after magit-checkout?

I use smart-mode-line package and I noticed when I change/checkout branches in command line, or in Magit, this is not reflected in the Smart Mode Line. I still see the name of the old branch, while I ...
1
vote
2answers
160 views

why does magit say I haven't pushed the commit?

I'm trying to figure out why magit is saying this. I created and checked out a branch array-of-tables from master, made a commit, then pushed it (using push current and choosing to push to origin/...
1
vote
2answers
164 views

Yasnippets won't expand in git-commit-mode?

I have written a snippet for git-commit-mode. However when I'm writing a commit message (from Magit), the snippet won't trigger. Does anyone know how to fix this? I have yasnippet version 20160924....
0
votes
1answer
46 views

Is it possible to force `markdown-mode` during git commit?

I was using following answer: https://emacs.stackexchange.com/a/57535/18414 to set markdown on the .git/COMMIT_EDITMSG file. (add-to-list 'auto-mode-alist '("/\\.git/COMMIT_EDITMSG\\'...
0
votes
2answers
3k views

How to get Exec-path-from-shell working in Spacemacs

I'm using the latest version of emacs, with and without a custom MacOS build (homebrew-emacs-plus). So, I'm trying to use spacemacs on MacOS, and I can't get it to pick up the $PATH on my host system. ...
0
votes
1answer
224 views

Can't commit on Windows using magit

I keep getting the following error 1 c:/Program Files (x86)/Git/bin/git.exe … "commit" "--amend" *ERROR*: Wrong type argument: stringp, nilerror: There was a problem with the editor '"c:/...
-1
votes
1answer
380 views

Magit fails to create local repository

This is what I got when I select a directory (whether it had a git repository) and choose "yes" when magit asks if I want to create one: Debugger entered--Lisp error: (wrong-type-argument stringp nil)...

1
2