Sublime Forum

How to view latest changes of a file from the command line?

#1

Using tig, I can do something like this if I want to view the history of a file:

tig /path/to/my_file.ts

However if I do the same thing using Sublime Merge:

smerge /path/to/my_file.ts

It just opens the current repository but provide no information about this specific file. Also searching for that file doesn’t bring anything (never understood what search is even supposed to be doing in smerge).

So any idea how to get that working?

0 Likes

#2

smerge log my_file.ts does what you want. Note that you’ll need to be in the git repository for this to work.

2 Likes

#3

That’s perfect, thank you so much!

0 Likes