Re: [PATCH v1] blame: avoid checking if a file exists on the working tree if a revision is provided

2015-11-16 Thread Edmundo Carmona Antoranz
Ok... I think I got how to check revisions / file existence after revisions have been set up. Sending next patch version On Mon, Nov 16, 2015 at 7:16 PM, Edmundo Carmona Antoranz wrote: > On Mon, Nov 16, 2015 at 7:07 PM, Edmundo Carmona Antoranz > wrote: >> - if (!file_exists(path

Re: [PATCH v1] blame: avoid checking if a file exists on the working tree if a revision is provided

2015-11-16 Thread Edmundo Carmona Antoranz
On Mon, Nov 16, 2015 at 7:07 PM, Edmundo Carmona Antoranz wrote: > - if (!file_exists(path)) > - die_errno("cannot stat path '%s'", path); Two things: 1 What I would love to do is check if revisions were provided. Something like: if (no_revisions() && !file_ex

[PATCH v1] blame: avoid checking if a file exists on the working tree if a revision is provided

2015-11-16 Thread Edmundo Carmona Antoranz
If a file has been deleted/renamed, blame refused to display blame content even if the path provided does match an existing blob on said revision. $ git status On branch hide Changes not staged for commit: (use "git add/rm ..." to update what will be committed) (use "git checkout -- ..." to di