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 <eantoranz@xxxxxxxxx> wrote: > On Mon, Nov 16, 2015 at 7:07 PM, Edmundo Carmona Antoranz > <eantoranz@xxxxxxxxx> 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_exists(path)) > die_errno("cannot stat path '%s'", path); > > _but_ revisions are set up a little bit later. I don't know right now > if I could just move it up (I don't think it would be that simple > because I see there's some messing up with argv and argc in that 'if' > that encloses the lines I'm removing). Maybe it would make sense to > move the check for file existence to _after_ revisions have been set > up? Even without the check for revisions, it's behaving kind of the > way I mean it to. But I'm sure it'd be more elegant if I checked if > revisions were provided. > > 2 It makes sense to create test cases for this patch, right? > > Looking forward to your comments. Thanks in advance. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html