4e28a2c63a
GitTest: Implement git reset --hard
2019-05-15 17:07:24 +02:00
b3bd01b9bb
GitTest: Implement git rm
2019-05-15 16:58:19 +02:00
c230aebcbc
GitTest: Refactor git add
...
This way we avoid any memory leaks and the code is much easier to read.
2019-05-15 16:34:47 +02:00
4750488e0d
GitTest: Try to implement a git pull
...
So far it just does a `git fetch`. I cannot seem to figure out how to
handle merge conflicts or to actually move the HEAD to origin/HEAD.
2019-05-15 16:21:46 +02:00
59005e8d49
GitTest: Implement git push
2019-05-15 13:27:17 +02:00
aa45ab07a8
GitTest: Commit: Do not allow empty commits
2019-05-15 13:07:10 +02:00
6cca6a5c4a
GitTest: Simplify git commit code
2019-05-15 12:57:05 +02:00
36c265a72d
GitTest: Get cloning over ssh to work
...
Libgit2 is quite horrible. When passing it credentials, if the
credentials are invalid, it will just ask for the credentials again and
again and again, without giving any feedback that the credentials have
failed. This just sucks.
2019-05-15 12:43:24 +02:00
69709a017f
GitTest: Try cloning over ssh
...
This still doesn't seem to work for me, but I think my local libgit2
might not be compiled with ssh support. Hurray for silent failures.
2019-05-15 12:42:46 +02:00
8c4b2e67aa
GitTest: Add clone support
...
For now it only supports http urls :(
2019-05-14 17:58:36 +02:00
957578e81a
GitTest: Allow a commit to not have any parents
...
This is the case when it is the first commit
2019-05-14 17:38:15 +02:00
43258f81d3
GitTest: Add a git commit implementation
...
Wow, the error handling in c is getting quite cumbersome
2019-05-14 17:33:36 +02:00
295734f4a0
GitTest: Add git init
2019-05-14 17:00:58 +02:00
59ed5e35ec
GitTest: Refactor the code
2019-05-14 16:51:56 +02:00
00b66149a1
GitTest: Try running 'git add' without android
...
It seems to work
2019-05-14 16:47:49 +02:00