adamtornhill / code-maat

A command line tool to mine and analyze data from version-control systems
http://www.adamtornhill.com/code/codemaat.htm
2.37k stars 218 forks source link

Simpler invocation #18

Open AndreaCrotti opened 9 years ago

AndreaCrotti commented 9 years ago

I think it would be great to avoid the need to manually generate the logs and then feed it into code-maat after..

After all the command that needs to be run is known and to find out what kind of repository is we just need to check for .git/.hg/.svn in the directory right?

I can probably give it a try and add something like "--auto $path" or "--repository-path $path" option that does the detection and parsing, what do you think?

adamtornhill commented 9 years ago

Yes, it's definitely a feature that simplifies (I usually do it via shell scripts). There are a few constraints:

If you want to look into this, that's just great!

AndreaCrotti commented 9 years ago

I think for the backward compatible is not an issue as long as we define some new clear arguments..

For Windows I don't really have one with me but I can try to make sure that it's compatible. Would be fine to use this library? https://github.com/Raynes/conch

adamtornhill commented 9 years ago

Thanks, sounds reasonable. It will be a useful feature. Conch looks fine (I've used clojure.java.shell for similar tasks).

AndreaCrotti commented 7 years ago

Still haven't managed to do this sorry. However FYI I just did a simple script to loop over all the strategies, which I then use to load all the files in Jupyter + pandas.. https://github.com/AndreaCrotti/scripts/blob/master/code_maat_all.sh

AndreaCrotti commented 7 years ago

only works for git2 though not really generic but a good start, might be good to have that feature inside code-maat directly maybe? I guess in this way lot of time is spent loading the JVM every time..

adamtornhill commented 7 years ago

Yes, the start of the JVM and Clojure itself is expensive, but also the parsing. I'm not putting much time into code maat now since I focus full-time on the Empear tools, where we do have this complete automation. There will be an open version available soon as CodeScene.