Hello community, here is the log from the commit of package libgit2-glib for openSUSE:Factory checked in at 2015-04-23 07:57:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libgit2-glib (Old) and /work/SRC/openSUSE:Factory/.libgit2-glib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libgit2-glib" Changes: -------- --- /work/SRC/openSUSE:Factory/libgit2-glib/libgit2-glib.changes 2015-04-10 09:51:57.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libgit2-glib.new/libgit2-glib.changes 2015-04-23 07:57:52.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Apr 15 06:41:03 UTC 2015 - dims...@opensuse.org + +- Update to version 0.22.6: + + Add ggit_repository_path_is_ignored. + +------------------------------------------------------------------- Old: ---- libgit2-glib-0.22.4.tar.xz New: ---- libgit2-glib-0.22.6.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libgit2-glib.spec ++++++ --- /var/tmp/diff_new_pack.Hc4wIP/_old 2015-04-23 07:57:52.000000000 +0200 +++ /var/tmp/diff_new_pack.Hc4wIP/_new 2015-04-23 07:57:52.000000000 +0200 @@ -18,7 +18,7 @@ Name: libgit2-glib -Version: 0.22.4 +Version: 0.22.6 Release: 0 Summary: Glib wrapper library around libgit2 License: LGPL-2.1+ ++++++ libgit2-glib-0.22.4.tar.xz -> libgit2-glib-0.22.6.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/ChangeLog new/libgit2-glib-0.22.6/ChangeLog --- old/libgit2-glib-0.22.4/ChangeLog 2015-04-07 08:14:14.000000000 +0200 +++ new/libgit2-glib-0.22.6/ChangeLog 2015-04-13 21:54:17.000000000 +0200 @@ -1,6 +1,39 @@ +commit c3224b70acfdbe0a9b4f927ca474cff4953f2453 +Author: Christian Hergert <christ...@hergert.me> +Date: 2015-04-13 + + repository: add ggit_repository_path_is_ignored() + + This function is a convenience wrapper around + git_ignore_path_is_ignored() + which takes a git_repository* and a path. + + https://bugzilla.gnome.org/show_bug.cgi?id=747727 + +M libgit2-glib/ggit-repository.c +M libgit2-glib/ggit-repository.h + +commit dcad30c3a26ad7f415f6efcb595a24990b4846be +Author: Ignacio Casal Quinteiro <i...@gnome.org> +Date: 2015-04-07 + + Post release version bump + +M configure.ac + +commit 2316a13d3f9ded6da1c77abbf88afdfa04399990 +Author: Ignacio Casal Quinteiro <i...@gnome.org> +Date: 2015-04-07 + + Release 0.22.4 + +M NEWS +M README +M configure.ac + commit 01f1f6959446280d84008fbb947e8259cd904c88 Author: Christian Hergert <christ...@hergert.me> -Date: 2015-04-06 +Date: 2015-04-06 clone-options: zero all fields in ggit_clone_options_new() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/NEWS new/libgit2-glib-0.22.6/NEWS --- old/libgit2-glib-0.22.4/NEWS 2015-04-07 08:13:35.000000000 +0200 +++ new/libgit2-glib-0.22.6/NEWS 2015-04-13 21:52:04.000000000 +0200 @@ -1,3 +1,7 @@ +News in 0.22.6 +-------------- +* Add ggit_repository_path_is_ignored + News in 0.22.4 -------------- * Fix crash when cloning diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/README new/libgit2-glib-0.22.6/README --- old/libgit2-glib-0.22.4/README 2015-04-07 08:13:19.000000000 +0200 +++ new/libgit2-glib-0.22.6/README 2015-04-13 21:51:41.000000000 +0200 @@ -20,8 +20,8 @@ Simple install procedure: - % tar Jxf libgit2-glib-0.22.4.tar.xz # unpack the sources - % cd libgit2-glib-0.22.4 # change to the toplevel directory + % tar Jxf libgit2-glib-0.22.6.tar.xz # unpack the sources + % cd libgit2-glib-0.22.6 # change to the toplevel directory % ./configure # run the `configure' script % make # build libgit2-glib [ Become root if necessary ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/aclocal.m4 new/libgit2-glib-0.22.6/aclocal.m4 --- old/libgit2-glib-0.22.4/aclocal.m4 2015-04-07 08:13:50.000000000 +0200 +++ new/libgit2-glib-0.22.6/aclocal.m4 2015-04-13 21:53:56.000000000 +0200 @@ -20,6 +20,184 @@ If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) +# gnome-compiler-flags.m4 +# +# serial 2 +# + +dnl GNOME_COMPILE_WARNINGS +dnl Turn on many useful compiler warnings and substitute the result into +dnl WARN_CFLAGS +dnl For now, only works on GCC +dnl Pass the default value of the --enable-compile-warnings configure option as +dnl the first argument to the macro, defaulting to 'yes'. +dnl Additional warning/error flags can be passed as an optional second argument. +dnl +dnl For example: GNOME_COMPILE_WARNINGS([maximum],[-Werror=some-flag -Wfoobar]) +AC_DEFUN([GNOME_COMPILE_WARNINGS],[ + dnl ****************************** + dnl More compiler warnings + dnl ****************************** + + AC_ARG_ENABLE(compile-warnings, + AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], + [Turn on compiler warnings]),, + [enable_compile_warnings="m4_default([$1],[yes])"]) + + if test "x$GCC" != xyes; then + enable_compile_warnings=no + fi + + warning_flags= + realsave_CFLAGS="$CFLAGS" + + dnl These are warning flags that aren't marked as fatal. Can be + dnl overridden on a per-project basis with -Wno-foo. + base_warn_flags=" \ + -Wall \ + -Wstrict-prototypes \ + -Wnested-externs \ + " + + dnl These compiler flags typically indicate very broken or suspicious + dnl code. Some of them such as implicit-function-declaration are + dnl just not default because gcc compiles a lot of legacy code. + dnl We choose to make this set into explicit errors. + base_error_flags=" \ + -Werror=missing-prototypes \ + -Werror=implicit-function-declaration \ + -Werror=pointer-arith \ + -Werror=init-self \ + -Werror=format-security \ + -Werror=format=2 \ + -Werror=missing-include-dirs \ + " + + dnl Additional warning or error flags provided by the module author to + dnl allow stricter standards to be imposed on a per-module basis. + dnl The author can pass -W or -Werror flags here as they see fit. + additional_flags="m4_default([$2],[])" + + case "$enable_compile_warnings" in + no) + warning_flags="-w" + ;; + minimum) + warning_flags="-Wall" + ;; + yes|maximum|error) + warning_flags="$base_warn_flags $base_error_flags $additional_flags" + ;; + *) + AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) + ;; + esac + + if test "$enable_compile_warnings" = "error" ; then + warning_flags="$warning_flags -Werror" + fi + + dnl Check whether GCC supports the warning options + for option in $warning_flags; do + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $option" + AC_MSG_CHECKING([whether gcc understands $option]) + AC_TRY_COMPILE([], [], + has_option=yes, + has_option=no,) + CFLAGS="$save_CFLAGS" + AC_MSG_RESULT([$has_option]) + if test $has_option = yes; then + tested_warning_flags="$tested_warning_flags $option" + fi + unset has_option + unset save_CFLAGS + done + unset option + CFLAGS="$realsave_CFLAGS" + AC_MSG_CHECKING(what warning flags to pass to the C compiler) + AC_MSG_RESULT($tested_warning_flags) + + AC_ARG_ENABLE(iso-c, + AS_HELP_STRING([--enable-iso-c], + [Try to warn if code is not ISO C ]),, + [enable_iso_c=no]) + + AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) + complCFLAGS= + if test "x$enable_iso_c" != "xno"; then + if test "x$GCC" = "xyes"; then + case " $CFLAGS " in + *[\ \ ]-ansi[\ \ ]*) ;; + *) complCFLAGS="$complCFLAGS -ansi" ;; + esac + case " $CFLAGS " in + *[\ \ ]-pedantic[\ \ ]*) ;; + *) complCFLAGS="$complCFLAGS -pedantic" ;; + esac + fi + fi + AC_MSG_RESULT($complCFLAGS) + + WARN_CFLAGS="$tested_warning_flags $complCFLAGS" + AC_SUBST(WARN_CFLAGS) +]) + +dnl For C++, do basically the same thing. + +AC_DEFUN([GNOME_CXX_WARNINGS],[ + AC_ARG_ENABLE(cxx-warnings, + AS_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] + [Turn on compiler warnings.]),, + [enable_cxx_warnings="m4_default([$1],[minimum])"]) + + AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) + warnCXXFLAGS= + if test "x$GXX" != xyes; then + enable_cxx_warnings=no + fi + if test "x$enable_cxx_warnings" != "xno"; then + if test "x$GXX" = "xyes"; then + case " $CXXFLAGS " in + *[\ \ ]-Wall[\ \ ]*) ;; + *) warnCXXFLAGS="-Wall -Wno-unused" ;; + esac + + ## -W is not all that useful. And it cannot be controlled + ## with individual -Wno-xxx flags, unlike -Wall + if test "x$enable_cxx_warnings" = "xyes"; then + warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" + fi + fi + fi + AC_MSG_RESULT($warnCXXFLAGS) + + AC_ARG_ENABLE(iso-cxx, + AS_HELP_STRING([--enable-iso-cxx], + [Try to warn if code is not ISO C++ ]),, + [enable_iso_cxx=no]) + + AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) + complCXXFLAGS= + if test "x$enable_iso_cxx" != "xno"; then + if test "x$GXX" = "xyes"; then + case " $CXXFLAGS " in + *[\ \ ]-ansi[\ \ ]*) ;; + *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; + esac + + case " $CXXFLAGS " in + *[\ \ ]-pedantic[\ \ ]*) ;; + *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; + esac + fi + fi + AC_MSG_RESULT($complCXXFLAGS) + + WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" + AC_SUBST(WARN_CXXFLAGS) +]) + # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # @@ -235,191 +413,6 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl ])# PKG_CHECK_VAR -# gnome-compiler-flags.m4 -# -# serial 4 -# - -dnl GNOME_COMPILE_WARNINGS -dnl Turn on many useful compiler warnings and substitute the result into -dnl WARN_CFLAGS -dnl For now, only works on GCC -dnl Pass the default value of the --enable-compile-warnings configure option as -dnl the first argument to the macro, defaulting to 'yes'. -dnl Additional warning/error flags can be passed as an optional second argument. -dnl -dnl For example: GNOME_COMPILE_WARNINGS([maximum],[-Werror=some-flag -Wfoobar]) -AU_DEFUN([GNOME_COMPILE_WARNINGS],[ - dnl ****************************** - dnl More compiler warnings - dnl ****************************** - - AC_ARG_ENABLE(compile-warnings, - AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], - [Turn on compiler warnings]),, - [enable_compile_warnings="m4_default([$1],[yes])"]) - - if test "x$GCC" != xyes; then - enable_compile_warnings=no - fi - - warning_flags= - realsave_CFLAGS="$CFLAGS" - - dnl These are warning flags that aren't marked as fatal. Can be - dnl overridden on a per-project basis with -Wno-foo. - base_warn_flags=" \ - -Wall \ - -Wstrict-prototypes \ - -Wnested-externs \ - " - - dnl These compiler flags typically indicate very broken or suspicious - dnl code. Some of them such as implicit-function-declaration are - dnl just not default because gcc compiles a lot of legacy code. - dnl We choose to make this set into explicit errors. - base_error_flags=" \ - -Werror=missing-prototypes \ - -Werror=implicit-function-declaration \ - -Werror=pointer-arith \ - -Werror=init-self \ - -Werror=format-security \ - -Werror=format=2 \ - -Werror=missing-include-dirs \ - -Werror=return-type \ - " - - dnl Additional warning or error flags provided by the module author to - dnl allow stricter standards to be imposed on a per-module basis. - dnl The author can pass -W or -Werror flags here as they see fit. - additional_flags="m4_default([$2],[])" - - case "$enable_compile_warnings" in - no) - warning_flags="-w" - ;; - minimum) - warning_flags="-Wall" - ;; - yes|maximum|error) - warning_flags="$base_warn_flags $base_error_flags $additional_flags" - ;; - *) - AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) - ;; - esac - - if test "$enable_compile_warnings" = "error" ; then - warning_flags="$warning_flags -Werror" - fi - - dnl Check whether GCC supports the warning options - for option in $warning_flags; do - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $option" - AC_MSG_CHECKING([whether gcc understands $option]) - AC_TRY_COMPILE([], [], - has_option=yes, - has_option=no,) - CFLAGS="$save_CFLAGS" - AC_MSG_RESULT([$has_option]) - if test $has_option = yes; then - tested_warning_flags="$tested_warning_flags $option" - fi - unset has_option - unset save_CFLAGS - done - unset option - CFLAGS="$realsave_CFLAGS" - AC_MSG_CHECKING(what warning flags to pass to the C compiler) - AC_MSG_RESULT($tested_warning_flags) - - AC_ARG_ENABLE(iso-c, - AS_HELP_STRING([--enable-iso-c], - [Try to warn if code is not ISO C ]),, - [enable_iso_c=no]) - - AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) - complCFLAGS= - if test "x$enable_iso_c" != "xno"; then - if test "x$GCC" = "xyes"; then - case " $CFLAGS " in - *[\ \ ]-ansi[\ \ ]*) ;; - *) complCFLAGS="$complCFLAGS -ansi" ;; - esac - case " $CFLAGS " in - *[\ \ ]-pedantic[\ \ ]*) ;; - *) complCFLAGS="$complCFLAGS -pedantic" ;; - esac - fi - fi - AC_MSG_RESULT($complCFLAGS) - - WARN_CFLAGS="$tested_warning_flags $complCFLAGS" - AC_SUBST(WARN_CFLAGS) -], -[[$0: This macro is deprecated. You should use AX_COMPILER_FLAGS instead and -eliminate use of --enable-iso-c. -See: http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html#ax_compiler_flags]]) - -dnl For C++, do basically the same thing. - -AU_DEFUN([GNOME_CXX_WARNINGS],[ - AC_ARG_ENABLE(cxx-warnings, - AS_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] - [Turn on compiler warnings.]),, - [enable_cxx_warnings="m4_default([$1],[minimum])"]) - - AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) - warnCXXFLAGS= - if test "x$GXX" != xyes; then - enable_cxx_warnings=no - fi - if test "x$enable_cxx_warnings" != "xno"; then - if test "x$GXX" = "xyes"; then - case " $CXXFLAGS " in - *[\ \ ]-Wall[\ \ ]*) ;; - *) warnCXXFLAGS="-Wall -Wno-unused" ;; - esac - - ## -W is not all that useful. And it cannot be controlled - ## with individual -Wno-xxx flags, unlike -Wall - if test "x$enable_cxx_warnings" = "xyes"; then - warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" - fi - fi - fi - AC_MSG_RESULT($warnCXXFLAGS) - - AC_ARG_ENABLE(iso-cxx, - AS_HELP_STRING([--enable-iso-cxx], - [Try to warn if code is not ISO C++ ]),, - [enable_iso_cxx=no]) - - AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) - complCXXFLAGS= - if test "x$enable_iso_cxx" != "xno"; then - if test "x$GXX" = "xyes"; then - case " $CXXFLAGS " in - *[\ \ ]-ansi[\ \ ]*) ;; - *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; - esac - - case " $CXXFLAGS " in - *[\ \ ]-pedantic[\ \ ]*) ;; - *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; - esac - fi - fi - AC_MSG_RESULT($complCXXFLAGS) - - WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" - AC_SUBST(WARN_CXXFLAGS) -], -[[$0: This macro is deprecated. You should use AX_COMPILER_FLAGS instead and -eliminate use of --enable-iso-cxx. -See: http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html#ax_compiler_flags]]) - dnl -*- mode: autoconf -*- dnl Copyright 2009 Johan Dahlin dnl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/configure new/libgit2-glib-0.22.6/configure --- old/libgit2-glib-0.22.4/configure 2015-04-07 08:13:51.000000000 +0200 +++ new/libgit2-glib-0.22.6/configure 2015-04-13 21:53:56.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libgit2-glib 0.22.4. +# Generated by GNU Autoconf 2.69 for libgit2-glib 0.22.6. # # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgit2-glib>. # @@ -591,8 +591,8 @@ # Identity of this package. PACKAGE_NAME='libgit2-glib' PACKAGE_TARNAME='libgit2-glib' -PACKAGE_VERSION='0.22.4' -PACKAGE_STRING='libgit2-glib 0.22.4' +PACKAGE_VERSION='0.22.6' +PACKAGE_STRING='libgit2-glib 0.22.6' PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libgit2-glib' PACKAGE_URL='' @@ -1399,7 +1399,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libgit2-glib 0.22.4 to adapt to many kinds of systems. +\`configure' configures libgit2-glib 0.22.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1469,7 +1469,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libgit2-glib 0.22.4:";; + short | recursive ) echo "Configuration of libgit2-glib 0.22.6:";; esac cat <<\_ACEOF @@ -1607,7 +1607,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libgit2-glib configure 0.22.4 +libgit2-glib configure 0.22.6 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1976,7 +1976,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libgit2-glib $as_me 0.22.4, which was +It was created by libgit2-glib $as_me 0.22.6, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2866,7 +2866,7 @@ # Define the identity of the package. PACKAGE='libgit2-glib' - VERSION='0.22.4' + VERSION='0.22.6' cat >>confdefs.h <<_ACEOF @@ -11794,7 +11794,7 @@ # Define the identity of the package. PACKAGE='libgit2-glib' - VERSION='0.22.4' + VERSION='0.22.6' cat >>confdefs.h <<_ACEOF @@ -14427,7 +14427,6 @@ -Werror=format-security \ -Werror=format=2 \ -Werror=missing-include-dirs \ - -Werror=return-type \ " additional_flags="" @@ -15115,7 +15114,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libgit2-glib $as_me 0.22.4, which was +This file was extended by libgit2-glib $as_me 0.22.6, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -15181,7 +15180,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libgit2-glib config.status 0.22.4 +libgit2-glib config.status 0.22.6 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/configure.ac new/libgit2-glib-0.22.6/configure.ac --- old/libgit2-glib-0.22.4/configure.ac 2015-04-07 08:13:10.000000000 +0200 +++ new/libgit2-glib-0.22.6/configure.ac 2015-04-13 21:51:33.000000000 +0200 @@ -2,7 +2,7 @@ m4_define(libgit2_glib_major_version, 0) m4_define(libgit2_glib_minor_version, 22) -m4_define(libgit2_glib_micro_version, 4) +m4_define(libgit2_glib_micro_version, 6) m4_define(libgit2_glib_version, libgit2_glib_major_version.libgit2_glib_minor_version.libgit2_glib_micro_version) AC_INIT([libgit2-glib], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/docs/reference/html/index.html new/libgit2-glib-0.22.6/docs/reference/html/index.html --- old/libgit2-glib-0.22.4/docs/reference/html/index.html 2015-04-07 08:14:13.000000000 +0200 +++ new/libgit2-glib-0.22.6/docs/reference/html/index.html 2015-04-13 21:54:17.000000000 +0200 @@ -14,7 +14,7 @@ <div class="titlepage"> <div> <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libgit2-glib Reference Manual</p></th></tr></table></div> -<div><p class="releaseinfo">for libgit2-glib 0.22.4 +<div><p class="releaseinfo">for libgit2-glib 0.22.6 </p></div> </div> <hr> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/docs/reference/version.xml new/libgit2-glib-0.22.6/docs/reference/version.xml --- old/libgit2-glib-0.22.4/docs/reference/version.xml 2015-04-07 08:13:54.000000000 +0200 +++ new/libgit2-glib-0.22.6/docs/reference/version.xml 2015-04-13 21:53:59.000000000 +0200 @@ -1 +1 @@ -0.22.4 +0.22.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/libgit2-glib/ggit-repository.c new/libgit2-glib-0.22.6/libgit2-glib/ggit-repository.c --- old/libgit2-glib-0.22.4/libgit2-glib/ggit-repository.c 2015-01-21 22:24:26.000000000 +0100 +++ new/libgit2-glib-0.22.6/libgit2-glib/ggit-repository.c 2015-04-13 21:51:21.000000000 +0200 @@ -116,6 +116,41 @@ } } +/** + * ggit_repository_path_is_ignored: + * @repository: A #GgitRepository. + * @path: A path within the repository. + * @error: (allow-none): A location for a #GError, or %NULL. + * + * Tests if the ignore rules apply to the path provided. + * + * This acts similar to filtering performed when calling "git add ." + * on the command line. + * + * Returns: %TRUE if @path should be ignored. + */ +gboolean +ggit_repository_path_is_ignored (GgitRepository *repository, + const gchar *path, + GError **error) +{ + int ignored = FALSE; + int ret; + + g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE); + g_return_val_if_fail (path != NULL, FALSE); + + ret = git_ignore_path_is_ignored (&ignored, _ggit_native_get (repository), path); + + if (ret != GIT_OK) + { + _ggit_error_set (error, ret); + return FALSE; + } + + return !!ignored; +} + static void ggit_repository_finalize (GObject *object) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-glib-0.22.4/libgit2-glib/ggit-repository.h new/libgit2-glib-0.22.6/libgit2-glib/ggit-repository.h --- old/libgit2-glib-0.22.4/libgit2-glib/ggit-repository.h 2015-01-18 16:59:06.000000000 +0100 +++ new/libgit2-glib-0.22.6/libgit2-glib/ggit-repository.h 2015-04-13 21:51:21.000000000 +0200 @@ -419,6 +419,9 @@ GgitNoteCallback callback, gpointer user_data, GError **error); +gboolean ggit_repository_path_is_ignored (GgitRepository *repository, + const gchar *path, + GError **error); G_END_DECLS