bram85, to emacs
@bram85@emacs.ch avatar

magit-find-file allows you to open a file at a certain revision, which could be a (relative) timestamp. Notation: HEAD@{3 days ago}.

Using these bits, I wrote a small #emacs command that displays a file at a certain moment, chosen with the built-in calendar.

(defun bram85-magit-find-file-as-of (datetime)  
 (interactive (list (org-read-date)))  
 (let ((rev (format "HEAD@{%s}" datetime)))  
 (magit-find-file rev (magit-read-file-from-rev rev "File: "))))  

#magit #git

abcdw, to emacs
@abcdw@fosstodon.org avatar

Did you know that you can do a git log just for a small part of the file?

aksharvarma, to emacs
@aksharvarma@mathstodon.xyz avatar

I always told people that is best written/edited in but didn't have a better argument for it than how well everything integrates. , pdf-tools, , etc. make it a seamless experience. I had a little bit of YASnippets going as well which made life wonderful.

That already brought things to the state of Gilles Castel's 2019 latex lecture notes in article (which I believe is famous, at least in these circles). But yesterday I found a blog post by @karthink about how to get that and more in Emacs.

LaTeX input for impatient scholars: https://karthinks.com/software/latex-input-for-impatient-scholars/

The very first demo (40 seconds) shows how to get an equation in latex that I am sure would take me over a minute to write by hand (and it would look ugly in comparison). Then I looked at the second video (45 seconds) and realized that somehow org table style editing can be used for things like matrices and arrays and what not.

Just like that, less than 2 minutes has me committed to getting all that functionality in my Emacs config. Of course, this being emacs, I can tailor it all precisely to my comfort and I'm willing to spend however long is needed to get it to that stage.

orhun, to rust
@orhun@fosstodon.org avatar

Say hi to Gitu! — A TUI Git client inspired by Magit ✨

🚀 Stage, commit and use other essential Git functions in your terminal!

🦀 Written in Rust & built with @ratatui_rs

⭐ GitHub: https://github.com/altsem/gitu

video/mp4

takeonrules, to emacs
@takeonrules@dice.camp avatar

A brief how to configure #Magit. And a personal reminder to read the documentation.

https://takeonrules.com/2024/03/01/quality-of-life-improvement-for-entering-and-exiting-magit/

#Emacs

sunshine, to emacs
@sunshine@urbanists.social avatar

A new blog post today on how #emacs and #magit have influenced my #git usage. I'd love to have feedback and corrections from the nice people on Mastodon!
https://signmaker.dev/refinements-from-magit

pbx, to emacs
@pbx@fosstodon.org avatar

#emacs is my org-mode editor, not my coding editor, but I've always liked the sound of #magit and have wanted to learn it for a long time. I came up with a silly hack this week to support that effort: a keybinding in VS Code that opens the current file in Emacs!

From there it's 'C-x g' and off to the races.

ynom, to emacs
@ynom@emacs.ch avatar

What do you all think of ?

It appears to be an -ish program that uses for customization.

Apparently there have been other emacs clones based on and and I guess those are called ?

Without going too into my personal details, I’m not a professional programmer and most of my experience is with a modern programming language, , and a high level programming language, .

I’ve tried learning several times by completing various programming exercises and I end up quitting because something obnoxious comes up that, from my minimal programming experience, appears to be due to elisp‘s age. Again, I’m not a pro, so this is just my amateur take.

I did a some programming challenges with which was hugely fun (mostly because of how fun it feels in emacs 😁) so I don’t think it’s the part of emacs I have a distaste for.

I’ll probably give it a serious go within the next week here and possibly report back, but I can’t imagine an emacs clone without and ChatGPT-shell will really ever become my daily driver 🙃

https://lem-project.github.io/

https://news.ycombinator.com/item?id=39397942

ctietze, to emacs
@ctietze@mastodon.social avatar

#Emacs and #magit users, have you figured out a way to tweak merge conflict/diff views so that the versions have more meaningful names?

E.g. merging foo into master, showing labels like "changes to be applied from foo" and "base from master" would be amazing.

HaraldKi, to linux German
@HaraldKi@nrw.social avatar

For software development I use #linux.
For version control I use #git.
To control git I use #magit in #emacs.
To start magit out of a #bash for the current project I use:

% type magit
magit is a function
magit ()
{
emacsclient -e "(kill-all-magit-buffers)" -e "(magit-status "$PWD")"
}
where kill-all-magit-buffers is based on this: https://stackoverflow.com/a/44119606/2954288

thanks @tarsius for magit

jameshowell, to random
@jameshowell@emacs.ch avatar

TIL about #difftastic, a richly semantic diff that integrates well with #magit. Holy amazeballs. Thank you, @wilfredh!

https://github.com/Wilfred/difftastic

tarsius, to emacs

I've just released Transient v0.5.0. https://emacsair.me/2023/11/28/transient-0.5/ #emacs #magit 🥳​

fomosapien, to emacs

#emacs does it better:

magit-rebase-interactive

a.k.a r i in the #magit transient.

Complex multi-commit #git rebasing could hardly be simpler. Magit really is the Emacs "killer app".

#emacsdoesitbetter

ramin_hal9001, to emacs
@ramin_hal9001@emacs.ch avatar

#Magit is too easy to use sometimes: almost lost an important bug fix to a hard reset

I was trying to reset just one file, for that you press X f but I absentmindedly pushed X h instead which deleted all changes. Fortunately #Emacs saved me, I was able to remember all of the files I had changed, visit each of those buffers and press C-/ (undo) in each of them to recover my work. The correct copy of my files were on the Undo stack. I can see why some people love those backup files with the tilde characters at the end of the file name.

But then again, #Emacs , or rather #Magit was the problem to begin with. Is there any way to configure it to ask for confirmation before doing a hard reset?

tarsius, to random

🎺​ has been downloaded four million times from . 🥳​

https://melpa.org/#/magit

brokenix, to random
@brokenix@emacs.ch avatar

#magit #phone indispensable

image/png

bram85, to emacs
@bram85@emacs.ch avatar

Here's a function using #magit to show the diff of the current buffer since a certain date/time.

My use-case: I put my work notes in a single org file. When our daily standup starts I can quickly review what I worked on / wrote down in the last 24 hours.

https://apps.bram85.nl/git/bram/gists/src/commit/cb4c371e5ce68ba89afce0ae020e6b6f4161d237/gists/magit-diff-range-current-buffer.el

#emacs

louis, (edited ) to random
@louis@emacs.ch avatar

I've seen a lot of pro-#Fossil, anti-#Git discussion recently.

Not that I love Git, but it does the job and almost all deployment platforms have support for Git only.

And, am I the only one who needs a staging area because I have to commit only a part of my changes? Often even line-based.

And, sometimes I want to squash 20 ugly commits into a single one, destructively changing the commit history. Really!

And, sometimes I need a hosting platform for a project and there is not a single serious one for Fossil. What's the point in using Fossil when I have to do a Git-export?

And, most importantly, there is #Magit :blobcatmeltlove:​.

So ... although I can feel the love for Fossil, it simply doesn't work for most of my use cases.

ericsfraga, to emacs
@ericsfraga@fediscience.org avatar

I am so proud of myself 🙂: I have just used #git #CherryPick for the first time ever and, drum roll, it worked! Did it via the command line as for some reason I get lost sometimes using #magit in #Emacs even though magit is fantastic for the usual activities.

nik, to random
@nik@nkantar.social avatar

#Lazygit is five years old. I’ve been using it for a few years, and it’s made interacting with #Git so much more convenient. I used #vimagit (inspired by a coworker’s use of #Magit) before it, and the official Git #CLI before that.

Love me a good tool!

Links:

vindarel, to Lisp French
@vindarel@framapiaf.org avatar

Lem news: I ran my first interactive git rebase inside Lem 😎 (lots of work remaining)

https://lem-project.github.io/lem-page/

piturnah, to rust

Hey everyone!!! I just released a really important usability update for #Gex, which is my #Rust #OSS project for #git interaction inspired by #Magit

Finally, we have scrolling! This is a feature that should've been added a long time ago, but here it is. Spent a long time tweaking it to try and get it to feel "right" so I'd love to know what you think!

A video where the software

shanecelis, to random
@shanecelis@mastodon.gamedev.place avatar

Use magit on your non-standard git directories like your dotfiles.

https://emacs.stackexchange.com/a/77219/40546

entilldaniel, to random

#magit in #emacs is by far the best git interface I've used.

tarsius, to random

I've just released Transient v0.4.0. https://emacsair.me/2023/05/10/transient-0.4/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines