Questions tagged [magit]

Magit is an Emacs mode for interacting with Git.

Magit is an interface to the version control system Git, implemented as an Emacs extension.

Unlike the Version Control package which is part of Emacs and strives to provide a unified interface to various version control systems, Magit only supports Git and can therefore better take advantage of its native features.

With Magit, you can inspect and modify your Git repositories with Emacs. You can review and commit the changes you have made to the tracked files, for example, and you can browse the history of past changes. There is support for cherry picking, reverting, merging, rebasing, and other common Git operations.

Magit's maintainer prefers if questions are asked on the dedicated Emacs Stackexchange site instead of here.

168 questions
0
votes
0 answers

How to prevent magit from formatting tabs and spaces

I use SmartTabs in my code. I've discovered that Magit has been undoing some of my indentation in my commits. Namely it doesn't like mixed tabs and spaces in a single…
unDeadHerbs
  • 1,306
  • 1
  • 11
  • 19
0
votes
1 answer

How to configure magit to make magit-status result the same as 'git status -s'

I want using magit to show the changes not only the context of files, but also its attributes like file-create-time. Some file's create time changed, and when try to merge, magit notify that something modified and need to commit first. But there has…
0
votes
1 answer

Open emacs application in a specific mode for given path

I was using emacs on command line and I was using following command to open current git directory in magit mode: emacs -nw -f magit-status --eval "(call-interactively #'delete-other-windows)" I switched to using emacs app instead of opening it in…
webdev
  • 598
  • 5
  • 16
0
votes
0 answers

Emacs' Magit requred feature 'isearch' was not provided

After upgrading packages in Emacs configuration Magit stopped working for me. (require 'magit) Fails with an error error "Required feature ‘isearch’ was not provided". This is whole stack trace: Debugger entered--Lisp error: (error "Required…
Marek Fajkus
  • 589
  • 4
  • 14
0
votes
1 answer

magit-define-popup-option not found

At some point I managed to add an option to the magit pull popup. This line ended up in my .emacs (which I believe worked at some point): (magit-define-popup-option 'magit-pull-popup ?s "recurse submodules" "--recurse-submodules=yes") Now I…
Techniquab
  • 843
  • 7
  • 22
0
votes
1 answer

In magit, how do I close all diffs when using merge preview?

When using magit I can preview a merge with the command m p. This displays a list of open file diffs. I can close each one individually by navigating to that line and pressing tab. Is it possible to close all diffs in the buffer at the same…
gburnett
  • 755
  • 8
  • 18
0
votes
1 answer

Getting viper-mode to play well with magit-key-mode

I use viper-mode in emacs and magit with magit-key-mode. Problem I am having is that I don't want viper to load in magit-key-mode as I then must hit Ctl-z to get into emacs mode before selecting a key in the magit-key-mode buffer? Any ideas on how…
m7d
  • 31
  • 2
0
votes
1 answer

magit-status in a new frame and delete frame on exit

I want to create a keybinding to open the magit-status buffer in a new frame as the only window and once the magit-status buffer is closed(q) then the frame should also close. The following keybinding works but it leaves the frame…
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
0
votes
2 answers

Emacs - Magit reuse same window for different project when switching window

I'm a new user of magit and I'm currently using it in a separate frame with a single window (magit-status). I'd like that to show the git status of the project of the latest visited buffer. Imagine that in another frame I have two windows with two…
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
0
votes
0 answers

git config email address correct, but magit commit email address does not match

Magit works fine for me, no commit fails, but my commit email address is not correct in magit. If i check git config the correct email address appears, but each new commit I make using magit, by default, has this email: blah@blahs-MacBook-Pro.local…
user6794223
  • 192
  • 9
0
votes
1 answer

Emacs magit diff-buffer scrolling - how to stop at bottom

Wondering if anyone knows the parameters that control scrolling in magit. Currently, when I'm in the magit-log buffer and keep hitting the space key, the diff view in the other window scrolls to the bottom, and continues back to the top and scrolls…
RoyM
  • 1,118
  • 1
  • 9
  • 28
0
votes
3 answers

Git alias to include time similar to magit

I use the following alias which I like a lot: git config --global alias.dag 'log --oneline --decorate --all --graph' It gives me something link this: * 1234 (HEAD->master, origin/master) Commit Message When I use emacs magit I also get the user…
eflanigan00
  • 481
  • 4
  • 12
0
votes
1 answer

how to make magit respect the current window layout

Suppose I have a vertical split in the current frame where I have two windows, left and right. Now I invoke M-x magit-status in the left window. what happens: magit takes over the whole frame what I'd like to happen: magit should take over only…
ninrod
  • 523
  • 6
  • 25
0
votes
1 answer

How to prevent `magit-visit-thing` to open an `evil-mode` buffer

evil-mode has evil-emacs-state-modes var, which defines modes to open in emacs mode. I have magit-diff-mode listed in that var (in fact, it is a default). Running magit-diff opens correctly in emacs mode. However, if I a run magit-status (opens in…
user3156459
  • 1,123
  • 2
  • 9
  • 17
0
votes
1 answer

Git commit to a custom parent

Example log-graph: A B |/ a Wanted local(not pushed yet) workflow: if the commit x is needed just for the branch A - commit x into the branch A if the commit x is needed just for the branch B - commit x into the branch B if the commit x is needed…
xged
  • 1,207
  • 1
  • 14
  • 20