1. 04 Nov, 2013 7 commits
  2. 03 Nov, 2013 1 commit
    • examples: doc update · becb13c0
      Update the explanation to reflect our use of git_status_list_new() and
      make the breaks in rocco more meaningful.
      
      Clarify why GIT_STATUS_CURRENT and index_to_workdir don't always imply
      each other. Fixes #1740.
      Carlos Martín Nieto committed
  3. 02 Nov, 2013 6 commits
  4. 01 Nov, 2013 23 commits
  5. 31 Oct, 2013 3 commits
    • Set new multivar values using unmatcheable regexp. · 376454d0
      Seems that regexp in Mac OS X and Linux were behaving
      differently: while in OS X the empty string didn't
      match any value, in Linux it was matching all of them,
      so the the second fetch refspec was overwritting the
      first one, instead of creating a new one.
      
      Using an unmatcheable regular expression solves the
      problem (and seems to be portable).
      Daniel Rodríguez Troitiño committed
    • Fix saving remotes with several fetch/push ref specs. · 3793fa9b
      At some moment git_config_delete_entry lost the ability to delete one entry of
      a multivar configuration. The moment you had more than one fetch or push
      ref spec for a remote you will not be able to save that remote anymore. The
      changes in network::remote::remotes::save show that problem.
      
      I needed to create a new git_config_delete_multivar because I was not able to
      remove one or several entries of a multivar config with the current API.
      Several tries modifying how git_config_set_multivar(..., NULL) behaved were
      not successful.
      
      git_config_delete_multivar is very similar to git_config_set_multivar, and
      delegates into config_delete_multivar of config_file. This function search
      for the cvar_t that will be deleted, storing them in a temporal array, and
      rebuilding the linked list. After calling config_write to delete the entries,
      the cvar_t stored in the temporal array are freed.
      
      There is a little fix in config_write, it avoids an infinite loop when using
      a regular expression (case for the multivars). This error was found by the
      test network::remote::remotes::tagopt.
      Daniel Rodríguez Troitiño committed