TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git-meld-index: Run meld or any Git difftool to interactively stage changes

21 pointsby davvidalmost 10 years ago

7 comments

sapekalmost 10 years ago
Vim plugin Fugitive [1] effectively allows editing files in index.<p>[1] <a href="http:&#x2F;&#x2F;vimcasts.org&#x2F;episodes&#x2F;fugitive-vim-working-with-the-git-index&#x2F;" rel="nofollow">http:&#x2F;&#x2F;vimcasts.org&#x2F;episodes&#x2F;fugitive-vim-working-with-the-g...</a>
wazari972almost 10 years ago
That looks great, I&#x27;ll give it a try at work!<p>Basically, if I understand well, it&#x27;s a GUI over `git add -p`. Instead of the CLI short diff, you get a `meld` instance that computes the diff between two (virtual) directories, one with the modified files of your git, one with the current index. And like `git -p`, you select what you want to add to the index.<p>That seems great to have a global vision of modifications, and to be able to navigate between the differents files to remember exactly what belongs to the commit!<p>I had such a tool in mind since I discovered `git add -p`, thanks for working on it!
评论 #9834012 未加载
评论 #9833777 未加载
评论 #9833148 未加载
onedognightalmost 10 years ago
&gt; navigate to a change without saying &#x27;n&#x27; to every change you want to skip<p>This tool sounds great, but in case you didn&#x27;t know, &#x27;git add -p&#x27; supports &#x27;&#x2F;&#x27; to search for a matching hunk.
codemacalmost 10 years ago
If you use emacs - make sure you&#x27;re using magit!
fmelaalmost 10 years ago
SourceTree also has this functionality.
CuriousSkepticalmost 10 years ago
Why not just use &#x27;git gui&#x27;?
评论 #9833934 未加载
评论 #9833191 未加载
pencilcodealmost 10 years ago
tig can also be used to stage changes.