From 9a748a84ad4af1115c479d2c82ac39bdeb031a3d Mon Sep 17 00:00:00 2001 From: Stefan Widgren Date: Sat, 4 Nov 2023 10:30:49 +0100 Subject: [PATCH] tests: output libgit2 version and features to facilitate debugging --- tests/add-force.R | 4 +++- tests/bare_repository.R | 5 ++++- tests/blame.R | 5 ++++- tests/blob.R | 5 ++++- tests/branch.R | 5 ++++- tests/bundle.R | 5 ++++- tests/checkout-named-branch.R | 5 ++++- tests/checkout.R | 5 ++++- tests/checkout_branch.R | 5 ++++- tests/checkout_commit.R | 5 ++++- tests/checkout_tag.R | 5 ++++- tests/clone_bare.R | 5 ++++- tests/clone_branch.R | 5 ++++- tests/clone_checkout.R | 5 ++++- tests/commit.R | 5 ++++- tests/commits_path.R | 5 ++++- tests/config.R | 5 ++++- tests/diff.R | 5 ++++- tests/fast_forward_merge.R | 5 ++++- tests/fetch.R | 5 ++++- tests/graph.R | 5 ++++- tests/index.R | 5 ++++- tests/invalid-conf-var.R | 5 ++++- tests/libgit2.R | 5 ++++- tests/ls_tree.R | 5 ++++- tests/merge.R | 5 ++++- tests/merge_named_branch.R | 5 ++++- tests/normal_merge.R | 5 ++++- tests/note.R | 5 ++++- tests/odb_blobs.R | 5 ++++- tests/pre-process-path.R | 5 ++++- tests/pull.R | 5 ++++- tests/push-force.R | 5 ++++- tests/push.R | 5 ++++- tests/reference.R | 5 ++++- tests/reflog.R | 5 ++++- tests/refspec.R | 5 ++++- tests/remotes.R | 5 ++++- tests/remove.R | 5 ++++- tests/repository.R | 5 ++++- tests/reset.R | 5 ++++- tests/revparse.R | 5 ++++- tests/signature.R | 5 ++++- tests/stash.R | 5 ++++- tests/status.R | 5 ++++- tests/tag.R | 5 ++++- tests/time.R | 5 ++++- tests/tree.R | 5 ++++- tests/when.R | 5 ++++- 49 files changed, 195 insertions(+), 49 deletions(-) diff --git a/tests/add-force.R b/tests/add-force.R index 5b98f2db0..e3fb390ff 100644 --- a/tests/add-force.R +++ b/tests/add-force.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,8 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/bare_repository.R b/tests/bare_repository.R index d09a71cdc..ac82fc860 100644 --- a/tests/bare_repository.R +++ b/tests/bare_repository.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/blame.R b/tests/blame.R index b846a599d..50bc02872 100644 --- a/tests/blame.R +++ b/tests/blame.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/blob.R b/tests/blob.R index 35cf33802..accc600af 100644 --- a/tests/blob.R +++ b/tests/blob.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -20,6 +20,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/branch.R b/tests/branch.R index 8b09ad4e5..89055e530 100644 --- a/tests/branch.R +++ b/tests/branch.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/bundle.R b/tests/bundle.R index fea770615..d830de80f 100644 --- a/tests/bundle.R +++ b/tests/bundle.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/checkout-named-branch.R b/tests/checkout-named-branch.R index d433fae0b..1ef96cdfb 100644 --- a/tests/checkout-named-branch.R +++ b/tests/checkout-named-branch.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create directories for repositories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/checkout.R b/tests/checkout.R index a2907d53f..9d9d8c3d2 100644 --- a/tests/checkout.R +++ b/tests/checkout.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/checkout_branch.R b/tests/checkout_branch.R index 33faf912d..3c6aa85e3 100644 --- a/tests/checkout_branch.R +++ b/tests/checkout_branch.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/checkout_commit.R b/tests/checkout_commit.R index 838556e4c..01c1f8208 100644 --- a/tests/checkout_commit.R +++ b/tests/checkout_commit.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/checkout_tag.R b/tests/checkout_tag.R index 31c0b0845..811f19ac6 100644 --- a/tests/checkout_tag.R +++ b/tests/checkout_tag.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/clone_bare.R b/tests/clone_bare.R index 6f853733c..0a5a1f272 100644 --- a/tests/clone_bare.R +++ b/tests/clone_bare.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create 2 directories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/clone_branch.R b/tests/clone_branch.R index e726759fe..cdd5c7d3b 100644 --- a/tests/clone_branch.R +++ b/tests/clone_branch.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create directories for repositories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/clone_checkout.R b/tests/clone_checkout.R index 21d1ea3c2..f7838bb39 100644 --- a/tests/clone_checkout.R +++ b/tests/clone_checkout.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create 2 directories in tempdir path_src <- tempfile(pattern = "git2r-") diff --git a/tests/commit.R b/tests/commit.R index d4a4c963e..fbdb639c6 100644 --- a/tests/commit.R +++ b/tests/commit.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/commits_path.R b/tests/commits_path.R index 8bcb35795..da8cb36a7 100644 --- a/tests/commits_path.R +++ b/tests/commits_path.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/config.R b/tests/config.R index 1d1eb63bf..c7e737697 100644 --- a/tests/config.R +++ b/tests/config.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/diff.R b/tests/diff.R index cdf13ce49..1d52f1885 100644 --- a/tests/diff.R +++ b/tests/diff.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/fast_forward_merge.R b/tests/fast_forward_merge.R index 8831fa347..aa19d0449 100644 --- a/tests/fast_forward_merge.R +++ b/tests/fast_forward_merge.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create directory for repository in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/fetch.R b/tests/fetch.R index 6deb10a41..a57d050cf 100644 --- a/tests/fetch.R +++ b/tests/fetch.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create 2 directories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/graph.R b/tests/graph.R index e74f3122a..8762a1423 100644 --- a/tests/graph.R +++ b/tests/graph.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/index.R b/tests/index.R index be88d3dff..d8c6fe870 100644 --- a/tests/index.R +++ b/tests/index.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/invalid-conf-var.R b/tests/invalid-conf-var.R index 2f0163877..351829f13 100644 --- a/tests/invalid-conf-var.R +++ b/tests/invalid-conf-var.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/libgit2.R b/tests/libgit2.R index ed5110ea1..071a934fb 100644 --- a/tests/libgit2.R +++ b/tests/libgit2.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + stopifnot(identical(names(libgit2_features()), c("threads", "https", "ssh"))) diff --git a/tests/ls_tree.R b/tests/ls_tree.R index c026b996d..eeb002228 100644 --- a/tests/ls_tree.R +++ b/tests/ls_tree.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Initialize a temporary repository path <- tempfile(pattern = "git2r-") diff --git a/tests/merge.R b/tests/merge.R index 09f570a77..3825c5af8 100644 --- a/tests/merge.R +++ b/tests/merge.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/merge_named_branch.R b/tests/merge_named_branch.R index 7f6ebf9a0..1e337e822 100644 --- a/tests/merge_named_branch.R +++ b/tests/merge_named_branch.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/normal_merge.R b/tests/normal_merge.R index 4860d1251..077c5dd2d 100644 --- a/tests/normal_merge.R +++ b/tests/normal_merge.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Initialize a temporary repository path <- tempfile(pattern = "git2r-") diff --git a/tests/note.R b/tests/note.R index b2a9d3448..0b677533e 100644 --- a/tests/note.R +++ b/tests/note.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/odb_blobs.R b/tests/odb_blobs.R index 626c68b51..0f024e2eb 100644 --- a/tests/odb_blobs.R +++ b/tests/odb_blobs.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/pre-process-path.R b/tests/pre-process-path.R index 69b5ff92f..aef2ec1a9 100644 --- a/tests/pre-process-path.R +++ b/tests/pre-process-path.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/pull.R b/tests/pull.R index 51a070a08..f33b8cd9c 100644 --- a/tests/pull.R +++ b/tests/pull.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create directories for repositories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/push-force.R b/tests/push-force.R index c06f611c1..f7fa6d5a2 100644 --- a/tests/push-force.R +++ b/tests/push-force.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create directories for repositories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/push.R b/tests/push.R index 12e708868..d7996265e 100644 --- a/tests/push.R +++ b/tests/push.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create 2 directories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/reference.R b/tests/reference.R index adf5e0711..076553209 100644 --- a/tests/reference.R +++ b/tests/reference.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2021 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/reflog.R b/tests/reflog.R index 7b0a8f80a..5067cad7b 100644 --- a/tests/reflog.R +++ b/tests/reflog.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/refspec.R b/tests/refspec.R index 99e8977ae..3c5d549b8 100644 --- a/tests/refspec.R +++ b/tests/refspec.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create directories for repositories in tempdir path_bare <- tempfile(pattern = "git2r-") diff --git a/tests/remotes.R b/tests/remotes.R index cf6b361b5..3f79e0ce3 100644 --- a/tests/remotes.R +++ b/tests/remotes.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/remove.R b/tests/remove.R index c097a1dac..6bd18b3b3 100644 --- a/tests/remove.R +++ b/tests/remove.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/repository.R b/tests/repository.R index e28dde332..69863ecc9 100644 --- a/tests/repository.R +++ b/tests/repository.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013 - 2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/reset.R b/tests/reset.R index 272b1182f..74988b6c6 100644 --- a/tests/reset.R +++ b/tests/reset.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/revparse.R b/tests/revparse.R index 2441fb4b4..618563ac2 100644 --- a/tests/revparse.R +++ b/tests/revparse.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/signature.R b/tests/signature.R index dde2cbc13..b46849bd9 100644 --- a/tests/signature.R +++ b/tests/signature.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Check printing of a class git_signature when <- structure(list(time = 1395567947, offset = 60), diff --git a/tests/stash.R b/tests/stash.R index ac4684387..836270eb9 100644 --- a/tests/stash.R +++ b/tests/stash.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/status.R b/tests/status.R index e1228ba06..2581e2697 100644 --- a/tests/status.R +++ b/tests/status.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/tag.R b/tests/tag.R index 0afdd7ab8..7a1198131 100644 --- a/tests/tag.R +++ b/tests/tag.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -19,6 +19,9 @@ source("util/check.R") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/time.R b/tests/time.R index 516784de3..99e5fdf6e 100644 --- a/tests/time.R +++ b/tests/time.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library(git2r) ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Test to coerce git_t <- structure(list(time = 1395567947, offset = 60), diff --git a/tests/tree.R b/tests/tree.R index 4f16e3bb0..377d604c8 100644 --- a/tests/tree.R +++ b/tests/tree.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2019 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Create a directory in tempdir path <- tempfile(pattern = "git2r-") diff --git a/tests/when.R b/tests/when.R index 89bd0c0b8..354d6ea56 100644 --- a/tests/when.R +++ b/tests/when.R @@ -1,5 +1,5 @@ ## git2r, R bindings to the libgit2 library. -## Copyright (C) 2013-2018 The git2r contributors +## Copyright (C) 2013-2023 The git2r contributors ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License, version 2, @@ -18,6 +18,9 @@ library("git2r") ## For debugging sessionInfo() +libgit2_version() +libgit2_features() + ## Check when method w1 <- structure(list(time = 1395567947, offset = 60),