Bug 415475 - Provide selected commit(s) as variable for external tools
Summary: Provide selected commit(s) as variable for external tools
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2013-08-20 08:20 EDT by Robin Stocker CLA
Modified: 2016-04-15 06:16 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Stocker CLA 2013-08-20 08:20:33 EDT
It would be nice if we could provide the commits that are selected in the history view to external tools, so that e.g. a launcher for "git difftool" could be created.

Currently, we offer these variables: git_branch, git_dir, git_repo_relative_path, git_work_tree.

We could add something like git_commit_1 and git_commit_2, or if there is support for an array of values, just git_commit[N] (don't know the syntax).

Should not be too hard to implement, patches welcome!

See the following question on Stackoverflow for the idea:

http://stackoverflow.com/questions/18294602/anyway-to-use-an-external-diff-editor-in-eclipse-with-egit

See also bug 356832 which is about supporting an external merge tool.