GitX - How do you view a single file's commit history?
Asked Answered
G

3

8

Using GitX, how do I view the revision history for a single file? (using the command-line interface preferably)

E.g using GitK this is rather simple;

$ gitk app/models/activity.rb
Gigantic answered 21/7, 2010 at 9:2 Comment(0)
B
12

try

gitx -- app/models/activity.rb

make sure you run the command at the repository root otherwise gitx will appear empty

Bleeding answered 12/5, 2011 at 17:30 Comment(1)
This doesn't work for me - it always goes to the full historyRosenberger
T
2

Use something like @rgcb said but make sure you are at the top level of the repository.

gitx -- app/models/activity.rb

not

gitx -- ./activity.rb
Tinner answered 28/5, 2013 at 18:58 Comment(0)
K
0

Same way, but with gitx instead:

$ gitx app/models/activity.rb

Note that all the commits shown will include the specified file, but the full commit will be shown (i.e., it'll show changes for other files modified in that commit).

Kagera answered 21/7, 2010 at 15:3 Comment(3)
No dice (I'm running Version 0.7.1).Gigantic
I tried it before posting the answer, and it worked. What happens when you do it?Kagera
GitX shows me nada: See screenshot here: skitch.com/glennr/r4r59/…Gigantic

© 2022 - 2024 — McMap. All rights reserved.