user3389507 user3389507 - 1 month ago 14
Git Question

Why "Show history" and "Show history for Selection" options are in grey using Git with Intellij Idea 13?

Go to some code file in Idea 13. Right click on it. Why "Git->Show history" and "Git->Show history for Selection" options are in grey using Git with Intellij Idea 13?

Answer

One reason is that file is not under control of Git or just staged for the next commit.

EDIT

According to the source code, IDEA also does not enable Show History options for files which are detected as binary files, files not in local file system (I actually do not quite realize what does it mean), files with the class extention, "workspace files" (path/to/project/project.iws - for file-based projects; path/to/project/.idea/workspace.xml - for directory-based ones) and files from the "ignore" list (IDE Settings -> FileTypes -> "Ignore files and folders" textbox)

Comments