I have a several modules where we save a file and it also commits/adds the file in git. This is great when I am using the tools that is already using those modules.
I am interested in getting that ability for less sophisticated perl programs too.
So I started spit balling.
The basic idea is to move toward every file being stored in a version control system like git When you want that. Then add as little as possible to make it happen.
Mm, not at all :) But please elaborate.
Actually, you should be able to write a :git PerlIO layer so that you could do something like
open my $fh, '>:git', $filename, 'commit message' or die "Whatever"
Well, there already is a four argument form of open(). There's five, six, ..., form as well. :)
Why not a two-argument form of close()? :)
I have a several modules where we save a file and it also commits/adds the file in git. This is great when I am using the tools that is already using those modules.
I am interested in getting that ability for less sophisticated perl programs too.
So I started spit balling.
The basic idea is to move toward every file being stored in a version control system like git When you want that. Then add as little as possible to make it happen.
I really like the 2 arg close idea too.
A PerlIO layer did not even occur to me.
Thanks