kbrw / gitex Goto Github PK
View Code? Open in Web Editor NEWElixir implementation of the Git object storage, but with the goal to implement the same semantic with other storage and topics
Elixir implementation of the Git object storage, but with the goal to implement the same semantic with other storage and topics
I'm following the readme to create new commits in a repo. It works well but changes are still present after the commit.
$ mkdir repo
$ git init
Initialized empty Git repository in /./repo/.git/
$ touch file
$ git add file
$ git commit -m "init" file
$ cd ..
$ iex -S mix
iex(1)> r = Gitex.Git.open("repo")
%Gitex.Git{home_dir: "repo/.git", user: nil}
iex(2)> Gitex.get("master", r) |> Gitex.put(r, "repo/file", "foo") |> Gitex.commit(r, "master", "foo")
"d12333819597c14024cc84d9adb775c20a3ad265"
$ cd repo
$ git log
commit d12333819597c14024cc84d9adb775c20a3ad265
Author: anonymous <anonymous@localhost>
Date: Thu Dec 22 12:51:47 2016 +0100
foo
commit 53dd7932d470e2dd93fedfcb45853a0b4dcfeb48
Author: Jean-Philippe Braun <[email protected]>
Date: Thu Dec 22 12:51:22 2016 +0100
init
$ git show d12333819597c14024cc84d9adb775c20a3ad265
commit d12333819597c14024cc84d9adb775c20a3ad265
Author: anonymous <anonymous@localhost>
Date: Thu Dec 22 12:51:47 2016 +0100
foo
diff --git a/repo/file b/repo/file
new file mode 100755
index 0000000..1910281
--- /dev/null
+++ b/repo/file
@@ -0,0 +1 @@
+foo
\ No newline at end of file
$ git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: repo/file
Currently when doing a Gitex.get of a OpenPGP-sign commit I get something like that:
%{
"": ["-----END PGP SIGNATURE-----", "=NkYq",
"jiocYAK29QE238G1TdRY8jxNhe8GYgQ=",
"7ljWAP9QiWfmfLRVOvhueZZ9BBInMaer2d2JklqLT4lQ+5O6agEA//aWnQZ+wMbq",
"iHUEABYKAB0WIQT4W9xj/ZtK9Ev2uBLVt6jkPJl97gUCW1ymgQAKCRDVt6jkPJl9", ""],
author: %{
email: "[email protected]",
local_time: {{2018, 7, 28}, {19, 23, 13}},
name: "Haelwenn (lanodan) Monnier",
utc_time: {{2018, 7, 28}, {17, 23, 13}}
},
committer: %{
email: "[email protected]",
local_time: {{2018, 7, 28}, {19, 23, 13}},
name: "Haelwenn (lanodan) Monnier",
utc_time: {{2018, 7, 28}, {17, 23, 13}}
},
gpgsig: "-----BEGIN PGP SIGNATURE-----",
hash: "bfdb74e538359865ab7a4844d8c9620024a31d7e",
message: "Initial Commit\n",
tree: "6675fd65e791c4ac7d4eb5682e63d0d159e95886"
}
I expect to either not have the gpgsig
or have the empty string keyword to be appended to gpgsig
.
As the title say, plenty of miscellaneous changes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.