Re: [RFC \ WISH] Add -o option to git-rev-list
From: Alex Riesen <hidden>
Date: 2016-08-11 19:48:45
Marco Costalba, Sun, Dec 10, 2006 12:38:42 +0100:
So my request is if it is possible to make git-rev-list write _directly_ to a file, without shell redirection, I would ask if it is possible:
Well, it is usually possible to redirect stdout directly into a file (see dup2). "Usually", unless you want windows which as always has it's own stupid way of doing simple things. Nevertheless, it's possible to do it without ever touching rev-list.
I understand this could be not exactly a top priority feature for git people, but I would really like to get the best possible interface with the plumbing git and the -o options is also a very common one.
Sadly, you're right. Almost every command-line program got the option. What education could have caused this, I wonder...
P.S: On another thread I explained why I see problematic linking directly against libgit.a
It still is the fastest you can get.