project plugin: use libgit2 instead of calling git command to read the files

Review Request #120177 - Created Sept. 13, 2014 and submitted

Information
Michal Humpula
kate
Reviewers
kate

Proof of concept for using libgit2 library instad of calling git command and spawning separate process. It's ugly as hell, mostly because of writing C-like style in C++ codebase.

The cmake find was stolen from ktexteditor (thanks Christoph;). I've used the C++11 trick that lambda without closure can be passed as pointer to function. The labels are used in C-style way to simplify free calls. Hence the initialization of all the variables in the start, because otherwise gcc starts to complain.

manual testing
combination with autodetection
classic .kateproject file
* .kateproject file with "directory" entry

Issues

  • 1
  • 0
  • 0
  • 1
Description From Last Updated
Maybe it should be called FindLibGit2.cmake? Also any chance we can get this in ECM? It looks like a fork ... Aleix Pol Gonzalez Aleix Pol Gonzalez
Christoph Cullmann
Michal Humpula
Emmanuel Pescosta
Aleix Pol Gonzalez
Christoph Cullmann
Michal Humpula
Review request changed

Status: Closed (submitted)

Loading...