aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.rst6
-rwxr-xr-xgit-remote-gcrypt6
2 files changed, 11 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 4ffb519..9841e6f 100644
--- a/README.rst
+++ b/README.rst
@@ -102,6 +102,12 @@ Repository Format
R7awFCUJWYdzXzrlkk7E2Acxq/Y4EfEcd62AwGGe0o0QxL+s5CwWI/NvMhb
repo :SHA224:5a191cea8c1021a95d813c4007c14f2cc987a40880c2f669430f1916 1
++ Manifest fields:
+
+ + `<fieldname><space><value>`, extends until newline.
+ + `{0-9a-f}[40]`, `pack`, `repo`, `keep` (planned), `extn` (extension
+ fields, preserved but unused).
+
Pieces yet to be Implemented
----------------------------
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 79dd1fc..cee730d 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -19,6 +19,7 @@ Hashpfx=":SHA224:"
UrlTag="G."
Packpfx="pack $Hashpfx"
Packkey_bytes=33
+Extension_list=
# compat/utility functions
xecho()
@@ -285,6 +286,7 @@ make_new_repo()
fix_config=1
}
echo_info "Repository URL is" "gcrypt::$URL/$UrlTag$urlid_"
+ Extension_list=$(xecho "extn comment")
isnull "$fix_config" || echo_info "(configuration for $NAME updated)"
}
@@ -335,6 +337,7 @@ ensure_connected()
Branchlist=$(xecho "$manifest_" | xgrep -E '^[0-9a-f]{40} ')
Packlist=$(xecho "$manifest_" | xgrep "^$Packpfx")
+ Extension_list=$(xecho "$manifest_" | xgrep "^extn ")
rcv_repoid=$(xecho "$manifest_" | xgrep "^repo ")
iseq "$(repoidstr)" "$rcv_repoid" || echo_die "Repository id mismatch!"
}
@@ -484,7 +487,8 @@ EOF
TmpManifest_Enc="$Localdir/manifest.$$"
trap 'rm -f "$TmpManifest_Enc"' EXIT
- (xecho "$Branchlist"; xecho "$Packlist"; repoidstr) |
+ (xecho "$Branchlist"; xecho "$Packlist";
+ repoidstr; xecho "$Extension_list") |
PRIVENCRYPT "$Recipients" > "$TmpManifest_Enc"
PUT "$URL" "$Repoid" < "$TmpManifest_Enc"