Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libgit2-glib for openSUSE:Factory checked in at 2021-12-25 20:16:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libgit2-glib (Old) and /work/SRC/openSUSE:Factory/.libgit2-glib.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libgit2-glib" Sat Dec 25 20:16:35 2021 rev:35 rq:942320 version:1.0.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libgit2-glib/libgit2-glib.changes 2020-04-23 18:27:38.823767347 +0200 +++ /work/SRC/openSUSE:Factory/.libgit2-glib.new.2520/libgit2-glib.changes 2021-12-25 20:16:50.821259438 +0100 @@ -1,0 +2,14 @@ +Thu Dec 23 12:07:52 UTC 2021 - Bj??rn Lie <[email protected]> + +- Update to version 1.0.0.1: + + Fix deprecation. +- Changes from version 1.0.0: + + Allow diff without repository. + + Allow null options on ggit_checkout API. + + Invalid path resolving relative path on windows. + + Add git_repository_set_head_detached to the public API. + + Added a wrapper function for git_remote_prune. + + Several meson improvements. + + Misc bug fixes. + +------------------------------------------------------------------- Old: ---- _servicedata libgit2-glib-0.99.0+16.obscpio New: ---- libgit2-glib-1.0.0.1.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libgit2-glib.spec ++++++ --- /var/tmp/diff_new_pack.vDs9fG/_old 2021-12-25 20:16:52.865261102 +0100 +++ /var/tmp/diff_new_pack.vDs9fG/_new 2021-12-25 20:16:52.869261105 +0100 @@ -1,7 +1,7 @@ # # spec file for package libgit2-glib # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands. # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,7 @@ Name: libgit2-glib -Version: 0.99.0+16 +Version: 1.0.0.1 Release: 0 Summary: GLib wrapper library around libgit2 License: LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.vDs9fG/_old 2021-12-25 20:16:52.897261128 +0100 +++ /var/tmp/diff_new_pack.vDs9fG/_new 2021-12-25 20:16:52.901261131 +0100 @@ -1,11 +1,13 @@ +<?xml version="1.0"?> <services> <service name="obs_scm" mode="disabled"> <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/GNOME/libgit2-glib.git</param> - <param name="revision">master</param> - <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> - <param name="versionrewrite-pattern">v.(.*)</param> - <param name="changesgenerate">enable</param> + <param name="revision">v1.0.0.1</param> + <param name="versionformat">@PARENT_TAG@</param> + <param name="versionrewrite-pattern">v(.*)</param> +<!-- <param name="changesgenerate">enable</param> +--> </service> <service name="tar" mode="buildtime"/> <service name="recompress" mode="buildtime"> ++++++ libgit2-glib-0.99.0+16.obscpio -> libgit2-glib-1.0.0.1.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/.gitignore new/libgit2-glib-1.0.0.1/.gitignore --- old/libgit2-glib-0.99.0+16/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/.gitignore 2021-12-23 03:21:52.000000000 +0100 @@ -0,0 +1,70 @@ +*.bak +*.lo +*.la +*.o +*.gir +*.typelib +*~ +*.stamp +.*.sw[nop] +*.gcov +.deps +.libs +Makefile +Makefile.in +/ABOUT-NLS +/aclocal.m4 +/autom4te.cache +/config.cache +/config.guess +/config.h +/config.h.in +/config.log +/config.lt +/config.rpath +/config.status +/config.status.lineno +/config.sub +/configure +/configure.lineno +/depcomp +/examples/general +/examples/walk +/gnome-doc-utils.make +/gtk-doc.make +/INSTALL +/install-sh +/intltool-extract +/intltool-extract.in +/intltool-merge +/intltool-merge.in +/intltool-update +/intltool-update.in +/libgit2-glib-1.0.pc +/libgit2-glib-*.tar.bz2 +/libgit2-glib/ggit-enum-types.c +/libgit2-glib/ggit-enum-types.h +/libtool +/ltmain.sh +/m4 +/missing +/mkinstalldirs +/omf.make +/po/*.header +/po/*.gmo +/po/*.mo +/po/*.sed +/po/*.sin +/po/.intltool-merge-cache +/po/Makefile +/po/Makefile.in +/po/Makefile.in.in +/po/Makevars.template +/po/POTFILES +/po/Rules-quot +/po/stamp-it +/py-compile +/so_locations +/stamp-h1 +/tests/repository +/xmldocs.make diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/.gitlab-ci.yml new/libgit2-glib-1.0.0.1/.gitlab-ci.yml --- old/libgit2-glib-0.99.0+16/.gitlab-ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/.gitlab-ci.yml 2021-12-23 03:21:52.000000000 +0100 @@ -0,0 +1,12 @@ +image: fedora:34 +stages: + - build +before_script: + - dnf install -y gcc meson ninja-build gettext gtk-doc glib2-devel libgit2-devel gobject-introspection-devel vala libssh2-devel +build-libgit2-glib: + stage: build + script: + - meson _build . + - ninja -C _build + - ninja -C _build install + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/NEWS new/libgit2-glib-1.0.0.1/NEWS --- old/libgit2-glib-0.99.0+16/NEWS 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/NEWS 2021-12-23 03:21:52.000000000 +0100 @@ -1,3 +1,23 @@ +News in 1.0.0.1 +--------------- +* Fix deprecation + +News in 1.0.0 +------------- +* Allow diff without repository +* Allow null options on ggit_checkout API +* Invalid path resolving relative path on windows +* Add git_repository_set_head_detached to the public API +* Added a wrapper function for git_remote_prune +* Several meson improvements +* Misc bug fixes + +News in 0.99.0.1 +---------------- +* git_merge: fix their_heads_length parameter +* Use correct free functions +* detect libgit2 version + News in 0.99.0 -------------- * Detect libgit2 version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/README new/libgit2-glib-1.0.0.1/README --- old/libgit2-glib-0.99.0+16/README 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/README 2021-12-23 03:21:52.000000000 +0100 @@ -20,11 +20,11 @@ Simple install procedure: - % tar Jxf libgit2-glib-0.99.0.tar.xz # unpack the sources - % cd libgit2-glib-0.99.0 # change to the toplevel directory - % meson builddir # run meson - % ninja -C builddir # build libgit2-glib + % tar Jxf libgit2-glib-1.0.0.1.tar.xz # unpack the sources + % cd libgit2-glib-1.0.0.1 # change to the toplevel directory + % meson builddir # run meson + % ninja -C builddir # build libgit2-glib # [ Become root if necessary ] - % ninja -C builddir install # install libgit2-glib + % ninja -C builddir install # install libgit2-glib See the file 'INSTALL' for more detailed information. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/docs/reference/.gitignore new/libgit2-glib-1.0.0.1/docs/reference/.gitignore --- old/libgit2-glib-0.99.0+16/docs/reference/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/docs/reference/.gitignore 2021-12-23 03:21:52.000000000 +0100 @@ -0,0 +1,16 @@ +/html +/tmpl +/xml +/libgit2-glib-1.0-decl-list.txt +/libgit2-glib-1.0-decl.txt +/libgit2-glib-1.0-overrides.txt +/libgit2-glib-1.0-undeclared.txt +/libgit2-glib-1.0-undocumented.txt +/libgit2-glib-1.0-unused.txt +/libgit2-glib-1.0.args +/libgit2-glib-1.0.hierarchy +/libgit2-glib-1.0.interfaces +/libgit2-glib-1.0.prerequisites +/libgit2-glib-1.0.signals +/version.xml +/*.stamp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-diff.c new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-diff.c --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-diff.c 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-diff.c 2021-12-23 03:21:52.000000000 +0100 @@ -208,12 +208,17 @@ path = ggit_diff_file_get_path (file); - data->encoding = - ggit_repository_get_attribute (priv->repository, - path, - "encoding", - GGIT_ATTRIBUTE_CHECK_FILE_THEN_INDEX, - NULL); + if (priv->repository != NULL) + { + data->encoding = + ggit_repository_get_attribute (priv->repository, + path, + "encoding", + GGIT_ATTRIBUTE_CHECK_FILE_THEN_INDEX, + NULL); + } else { + data->encoding = "UTF-8"; + } } } @@ -963,14 +968,14 @@ * there was no error, %NULL otherwise. */ GgitDiff * -ggit_diff_new_buffers (const guint8 *buffer1, - gssize buffer1_len, - const gchar *buffer1_as_path, - const guint8 *buffer2, - gssize buffer2_len, - const gchar *buffer2_as_path, - GgitDiffOptions *diff_options, - GError **error) +ggit_diff_new_buffers (const guint8 *buffer1, + gssize buffer1_len, + const gchar *buffer1_as_path, + const guint8 *buffer2, + gssize buffer2_len, + const gchar *buffer2_as_path, + GgitDiffOptions *diff_options, + GError **error) { @@ -1047,18 +1052,18 @@ * Same as ggit_diff_blobs() but using a buffer. */ void -ggit_diff_blob_to_buffer (GgitBlob *old_blob, - const gchar *old_as_path, - const guint8 *buffer, - gssize buffer_len, - const gchar *buffer_as_path, - GgitDiffOptions *diff_options, - GgitDiffFileCallback file_cb, - GgitDiffBinaryCallback binary_cb, - GgitDiffHunkCallback hunk_cb, - GgitDiffLineCallback line_cb, - gpointer user_data, - GError **error) +ggit_diff_blob_to_buffer (GgitBlob *old_blob, + const gchar *old_as_path, + const guint8 *buffer, + gssize buffer_len, + const gchar *buffer_as_path, + GgitDiffOptions *diff_options, + GgitDiffFileCallback file_cb, + GgitDiffBinaryCallback binary_cb, + GgitDiffHunkCallback hunk_cb, + GgitDiffLineCallback line_cb, + gpointer user_data, + GError **error) { gint ret; const git_diff_options *gdiff_options; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-index.c new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-index.c --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-index.c 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-index.c 2021-12-23 03:21:52.000000000 +0100 @@ -330,6 +330,7 @@ gchar *path; GgitRepository *repo; GFile *wd; + GString *gs_path; g_return_val_if_fail (GGIT_IS_INDEX (idx), FALSE); g_return_val_if_fail (G_IS_FILE (file), FALSE); @@ -341,6 +342,11 @@ g_object_unref (repo); path = g_file_get_relative_path (wd, file); +#ifdef TRANSLATE_WINDOWS_PATHS + gs_path = g_string_new (path); + g_string_replace (gs_path, "\\", "/", 0); + path = g_string_free (gs_path, FALSE); +#endif g_object_unref (wd); g_return_val_if_fail (path != NULL, FALSE); @@ -447,6 +453,7 @@ GFile *wd; gchar *path; gint ret; + GString *gs_path; g_return_val_if_fail (GGIT_IS_INDEX (idx), FALSE); g_return_val_if_fail (G_IS_FILE (file), FALSE); @@ -456,6 +463,11 @@ wd = ggit_repository_get_workdir (repo); path = g_file_get_relative_path (wd, file); +#ifdef TRANSLATE_WINDOWS_PATHS + gs_path = g_string_new (path); + g_string_replace (gs_path, "\\", "/", 0); + path = g_string_free (gs_path, FALSE); +#endif g_object_unref (wd); g_object_unref (repo); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-remote.c new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-remote.c --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-remote.c 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-remote.c 2021-12-23 03:21:52.000000000 +0100 @@ -625,4 +625,31 @@ return TRUE; } +/** + * ggit_remote_prune: + * @remote: a #GgitRemote. + * @callbacks: the callbacks to use for this connection. + * @error: a #GError for error reporting, or %NULL. + * + * Prune tracking refs that are no longer present on remote. + */ +void +ggit_remote_prune (GgitRemote *remote, + GgitRemoteCallbacks *callbacks, + GError **error) +{ + gint ret; + + g_return_if_fail (GGIT_IS_REMOTE (remote)); + g_return_if_fail (error == NULL || *error == NULL); + + ret = git_remote_prune (_ggit_native_get (remote), + _ggit_remote_callbacks_get_native (callbacks)); + + if (ret != GIT_OK) + { + _ggit_error_set (error, ret); + } +} + /* ex:set ts=8 noet: */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-remote.h new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-remote.h --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-remote.h 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-remote.h 2021-12-23 03:21:52.000000000 +0100 @@ -115,6 +115,10 @@ GgitPushOptions *push_options, GError **error); +void ggit_remote_prune (GgitRemote *remote, + GgitRemoteCallbacks *callbacks, + GError **error); + G_END_DECLS #endif /* __GGIT_REMOTE_H__ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-repository.c new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-repository.c --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-repository.c 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-repository.c 2021-12-23 03:21:52.000000000 +0100 @@ -943,6 +943,37 @@ } /** + * ggit_repository_set_head_detached: + * @repository: a #GgitRepository. + * @ref_name: canonical name of the reference HEAD should point to. + * @error: a #GError for error reporting, or %NULL. + * + * Returns: %TRUE if head was successfully set, %FALSE otherwise. + * + **/ +gboolean +ggit_repository_set_head_detached (GgitRepository *repository, + GgitOId *oid, + GError **error) +{ + gint ret; + + g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE); + g_return_val_if_fail (error == NULL || *error == NULL, FALSE); + + ret = git_repository_set_head_detached (_ggit_native_get(repository), + (const git_oid *)_ggit_oid_get_oid(oid)); + + if (ret != GIT_OK) + { + _ggit_error_set (error, ret); + return FALSE; + } + + return TRUE; +} + +/** * ggit_repository_discover: * @location: the base location where the lookup starts. * @error: a #GError for error reporting, or %NULL. @@ -3539,7 +3570,7 @@ gint ret; g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE); - g_return_val_if_fail (GGIT_IS_CHECKOUT_OPTIONS (options), FALSE); + g_return_val_if_fail (options == NULL || GGIT_IS_CHECKOUT_OPTIONS (options), FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE); ret = git_checkout_head (_ggit_native_get (repository), @@ -3580,7 +3611,7 @@ g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE); g_return_val_if_fail (index == NULL || GGIT_IS_INDEX (index), FALSE); - g_return_val_if_fail (GGIT_IS_CHECKOUT_OPTIONS (options), FALSE); + g_return_val_if_fail (options == NULL || GGIT_IS_CHECKOUT_OPTIONS (options), FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE); ret = git_checkout_index (_ggit_native_get (repository), @@ -3622,7 +3653,7 @@ g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE); g_return_val_if_fail (tree == NULL || GGIT_IS_OBJECT (tree), FALSE); - g_return_val_if_fail (GGIT_IS_CHECKOUT_OPTIONS (options), FALSE); + g_return_val_if_fail (options == NULL || GGIT_IS_CHECKOUT_OPTIONS (options), FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE); ret = git_checkout_tree (_ggit_native_get (repository), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-repository.h new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-repository.h --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-repository.h 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-repository.h 2021-12-23 03:21:52.000000000 +0100 @@ -301,6 +301,10 @@ const gchar *ref_name, GError **error); +gboolean ggit_repository_set_head_detached (GgitRepository *repository, + GgitOId *oid, + GError **error); + GFile *ggit_repository_discover (GFile *location, GError **error); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-signature.c new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-signature.c --- old/libgit2-glib-0.99.0+16/libgit2-glib/ggit-signature.c 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/libgit2-glib/ggit-signature.c 2021-12-23 03:21:52.000000000 +0100 @@ -381,7 +381,7 @@ time_zone_id = g_strdup_printf ("%s%02i:%02i", s->when.offset >= 0 ? "+" : "-", hours, minutes); - time_zone = g_time_zone_new (time_zone_id); + time_zone = g_time_zone_new_identifier (time_zone_id); g_free (time_zone_id); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/meson.build new/libgit2-glib-1.0.0.1/meson.build --- old/libgit2-glib-0.99.0+16/meson.build 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/meson.build 2021-12-23 03:21:52.000000000 +0100 @@ -1,6 +1,6 @@ project( 'libgit2-glib', 'c', - version: '0.99.0', + version: '1.0.0.1', default_options: 'buildtype=debugoptimized', license: 'LGPL2+', meson_version: '>= 0.49.0', @@ -99,12 +99,14 @@ ] endif -# Workaround for meson's bug -# https://github.com/mesonbuild/meson/pull/1896 -if get_option('b_ndebug') == 'true' +if ['true', 'if-release'].contains(get_option('b_ndebug')) common_flags += ['-DG_DISABLE_ASSERT'] endif +if get_option('translate_windows_paths') + common_flags += ['-DTRANSLATE_WINDOWS_PATHS'] +endif + add_project_arguments(common_flags, language: 'c') if cc.has_link_argument('-Wl,-Bsymbolic-functions') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/meson_options.txt new/libgit2-glib-1.0.0.1/meson_options.txt --- old/libgit2-glib-0.99.0+16/meson_options.txt 2020-03-02 09:58:53.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/meson_options.txt 2021-12-23 03:21:52.000000000 +0100 @@ -3,3 +3,4 @@ option('python', type: 'boolean', value: true, description: 'Build with python support') option('ssh', type: 'boolean', value: true, description: 'Build with libgit2 ssh support') option('vapi', type: 'boolean', value: true, description: 'Build Vala bindings') +option('translate_windows_paths', type: 'boolean', value: true, description: 'Turn windows paths into Unix paths') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.99.0+16/tools/.gitignore new/libgit2-glib-1.0.0.1/tools/.gitignore --- old/libgit2-glib-0.99.0+16/tools/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/libgit2-glib-1.0.0.1/tools/.gitignore 2021-12-23 03:21:52.000000000 +0100 @@ -0,0 +1 @@ +/*.cache ++++++ libgit2-glib.obsinfo ++++++ --- /var/tmp/diff_new_pack.vDs9fG/_old 2021-12-25 20:16:53.057261258 +0100 +++ /var/tmp/diff_new_pack.vDs9fG/_new 2021-12-25 20:16:53.061261262 +0100 @@ -1,6 +1,6 @@ name: libgit2-glib -version: 0.99.0+16 -mtime: 1583139533 -commit: f231fb6f5da4784f6ebb6ecabc83c07bcf55321e +version: 1.0.0.1 +mtime: 1640226112 +commit: 391b764ac7e2915ed564f5e144cfdb1ae51fbc4e
