#Magit

2025-06-20

recently I messed up my #zsh profile paths on #kitty and but most tasks went well on #vterm #magit
the latter is so simple , that I wonder why was I using another term for git or anything in 1st place
OS is obviously #nixos , hence the isolated envs

2025-06-19

Thanks to #Magit in #Emacs I no longer dread git conflicts :ms_robot: magit.vc/

2025-06-17

My shortcut for launching the #gitAnnex #magit transient buffer in #emacs is SPC g a. Sensible stuff; Space(prefix) Git Annex.

Now consider that #magit-annex's transient command shortcut to execute the sync function is y and then y again to sync all remotes.

I've been typing that combination dozens of times a day for a long time before I noticed :D

(Not that I have any plan to change it ;) )

#gay #gayy

Mehrad :kde: :emacs: :rstats:Mehrad@fosstodon.org
2025-06-14

#TIL that #Magit has a function to generate a shell command that runs an uncustomized #Emacs with only Magit loaded and it will already put it in clipboard. The interactive function is called `magit-emacs-Q-command`.

This is so cool and very handy for testing the issues apart from the user's config and to report a bug easily. I wish this was a built-in function in Emacs that get the the package we want to debug and it already handles the dependencies and etc. Anyways, very handy function. :)

Dave Marquardtdavemq@fosstodon.org
2025-06-13

#b4 #emacs #magit #python

I installed "b4" using "pipx", which sets up a virtual environment for the "b4" code and its dependencies. I looked for a way to set TMPDIR to the current working directory when running "b4".

After some research, I found I could create a "foo.pth" file in the pipx virtual environment's site-pakages directory, which a 1 liner:

import os; os.environ['TMPDIR'] = os.getenv('PWD')

This did the trick! b4 prep --edit-cover now works with emacsclient and Magit!

5/5

Dave Marquardtdavemq@fosstodon.org
2025-06-13

#b4 #emacs #magit #linux

I'm not sure why Magit really cares. I tried using advice to get around this, but didn't quite get it to work.

Looking at the "b4", I found the Python code for editing the cover letter. It creates a temporary directory and then "COMMIT_EDITMSG" in that directory. Looking at the documentation for tempfile.TemporaryDirectory suggested using an environment variable like TMPDIR. Okay, this is another idea, set TMPDIR to the current working directory.

4/5

Dave Marquardtdavemq@fosstodon.org
2025-06-13

#b4 #emacs #magit

The file is showing in Emacs. I tried to exit the emacsclient session with C-x #, and it asked if I wanted to create the directory where the file lived. Sure, I say. But at this point its useless. So I looked for ways to work around or fix this problem. With Emacs, I suspect Magit was involved. Looking at the source code, I found the places where this error was triggered. There was no easy way to get around this, other than put the file in the repository directory tree.

3/5

Dave Marquardtdavemq@fosstodon.org
2025-06-13

#b4 #emacs #magit #linux

"b4 prep --edit-cover" uses the EDITOR environment variable to figure out which editor to use. Apparently the default for bash on Fedora 42 is to set EDITOR to /usr/bin/vim. While I'm quite versed in vi (the predecessor to vim), I prefer to use Emacs. So I set EDITOR to emacsclient and tried again. But this time I got an error about the file not being in a Git repository, and b4 said the file hadn't changed.

2/5

Dave Marquardtdavemq@fosstodon.org
2025-06-13

#b4 #emacs #magit #linux

I recently found a small typo in some Linux kernel documentation, and posted a patch to get it fixed. There were some problems with the patch, and it was suggested I use a tool called "b4" b4.docs.kernel.org/en/latest/i. I started using it for my next patch revision, but ran into a snag when editing the patch cover file.

1/5

2025-06-12

Hmmm....

Rule of thumb: In the kernel, we keep new features in a bool state. And this is not the first time. It happened before with other features, too.

cc:Linus Torvalds

cc:SeongJae (SJ) Park

cc:Andrew Morton

#linuxkernel #linux #opensourcedevelopment #operatingsystem #emacs #magit #tool

unixbhaskarunixbhaskar
2025-06-12

Hmmm....

Rule of thumb: In the kernel, we keep new features in a bool state. And this is not the first time. It happened before with other features, too.

cc:Linus Torvalds

cc:SeongJae (SJ) Park

cc:Andrew Morton

DeadSwitch @ T0m's 1T C4feTomsITCafe
2025-06-11

Text editor? IDE? Operating System? Emacs is your silent companion.

tomsitcafe.com/2025/06/11/emac

2025-06-07

Started playing with #Aider and aider.el for #emacs aaaaaand so far I'm not impressed.

My colleague and good friend, who haven't really found a use-case for AI yet, thinks it rocks however. He's more of a low-level kernel coder, so that was surprising.

I really dislike the default of it committing stuff to git without my review first. I mean, I know I can revert, I have #magit for this, but I don't trust robots working in the background without my approval.

2025-05-30

hmm recent magit unstable updates leaked into my config, the latest magic-section was not happy with magit stable 4.3.5

boy, without a working magit i'm in slomo hell

N-gated Hacker Newsngate
2025-05-29

👨‍💻 So, someone slapped into and called it "Edamagit" because apparently, naming things after cheese is the new trend 🧀. Meanwhile, is too busy pretending can write better code than you can to notice 🤖.
github.com/kahole/edamagit

2025-05-28
unixbhaskarunixbhaskar
2025-05-25

This for you entertainment....pure show off...I am good at it ...😜🤣

youtu.be/NVpKohvlmFs

2025-05-25

This for you entertainment....pure show off...I am good at it ...😜🤣

#linuxadmin #linuxkernel #opensourcedevelopment #operatingsystem #emacs #gnu #tool #git #magit

youtu.be/NVpKohvlmFs

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst