现有Emacs模块中缺少使用git的功能? [英] Which functions are missing in existing Emacs modules for work with git?

查看:131
本文介绍了现有Emacs模块中缺少使用git的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你认为 - 应该实现什么功能来使Emacs的Git变得更加舒适? magit / git.el / egg / git-emacs /...?

解决方案

我已经玩git-emacs几天。我在阅读有关我的选择之后选择了一个(在您的博客上发布),并尝试其中的一些。我的想法:


  1. git.el - 您的评论中有两件事情出现




    • 它像PCL-CVS一样工作 - 我熟悉这个软件包(多年前已经使用了这个软件包),但是我更感兴趣的是学习如何做git我认为有一个熟悉的范例会妨碍学习。

    • git命令在状态缓冲区之外没有工作 - 我喜欢在更深层次上集成,否则我可以从shell运行所有的git命令,并完成它。


  2. magit - 似乎更好在做git的方式方面,但是再一次,有两件事情出现了:




    • 改变语义 - 你提到了几个表现不同的命令取决于上下文。通常我是-dwim命令的粉丝,但不同之处在于取消分段文件和删除文件之间的区别!

    • 它看起来不像一些其他(例如蛋或git-emacs);在正面上,我喜欢图形分支表示


  3. egg - 我实际上尝试过这个




    • magit有一个更好的界面,虽然它看起来比magit好多了,但我担心它不会跟上magit开发

    • 旁边没有文件;我碰到了一些问题(我不记得了什么),找不到解决方案,所以我只是把它移开,然后转到....


  4. git-emacs - 看起来不错,文件很好




    • 我喜欢的东西:易于使用,外观和感觉,内置大量有用的命令,可以通过` git-cmd 直接访问任何git命令,支持git-blame

    • <我不喜欢的事情: ido (没有可配置性是对我的一个主要的关闭,并暗示着作者的我最了解的态度),缺乏一些基本命令,如隐藏,缺乏任何自定义(再次暗示我最了解的态度)

由于我在学习git本身还处于起步阶段,很难说这些包中还缺少什么。如果他对补丁感兴趣,我打算要求git-emacs的作者,因为我可能会引入自定义(ido,face和其他正常的东西)。无论如何,希望这有所帮助。


What do you think - which functions should be implemented to make work with Git from Emacs more comfortable? Which functions are missing in magit/git.el/egg/git-emacs/...?

解决方案

I've been playing with git-emacs for a few days. I chose that one after reading about my choices (on your blog post) and trying a few of them out. My thoughts:

  1. git.el - two things stood out from your review

    • it worked like PCL-CVS -- I am familiar with that package (having used it for many years, many years ago) but I was more interested in learning how to do things the git way, and I thought having a familiar paradigm would hinder that learning.
    • the git commands didn't work outside of the status buffer -- I like to integrate at a deeper level than that, otherwise I could just run all of my git commands from the shell and be done with it.
  2. magit - seemed much better in terms of doing things the git way but, again, two things stood out:

    • changing semantics -- You mentioned several commands that behaved differently depending on context. Normally I'm a big fan of -dwim commands, but not when the difference is between un-staging a file and deleting it!
    • it didn't look as nice as some of the others (e.g. egg or git-emacs); on the plus side, I did like the graphical branch representations
  3. egg - I actually tried this one

    • magit with a better interface, and while it looked much better than magit, I was concerned that it wouldn't keep up with magit development
    • there was next to no documentation on it; I ran into some problem (I can't remember what) and couldn't find out the solution, so I just ditched it and moved on to....
  4. git-emacs -- looked nice and had nice documentation

    • things I like: documentation, ease of use, look and feel, lots of useful commands built-in, direct access to any git command via `git-cmd', support for git-blame
    • things I dislike: ido (not having it be configurable is a major turn-off to me and hints at an attitude of "I know best" on the part of the author), lack of some basic commands like stash, lack of any customizations (again, hinting at an "I know best" attitude)

As I'm still in my infancy in terms of learning git itself, it's hard to say what else is missing from these packages. I plan on asking the author of git-emacs if he's interested in patches, as I would likely introduce customizations (of ido, faces and other normal things). Hope this helps somewhat, anyway.

这篇关于现有Emacs模块中缺少使用git的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆