]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/network/remote/remotes.c
remote: remove live changing of refspecs
authorCarlos Martín Nieto <cmn@dwim.me>
Thu, 23 Apr 2015 04:51:34 +0000 (06:51 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 13 May 2015 07:46:36 +0000 (09:46 +0200)
commit7725499072aaf4d9093c615fee5a65d8477100bc
treefc68cffcafe2d9e762729334dfe2f7a4ee15783e
parent3fec548a989b09fc7a2c30f42b1d4fa123a8867e
remote: remove live changing of refspecs

The base refspecs changing can be a cause of confusion as to what is the
current base refspec set and complicate saving the remote's
configuration.

Change `git_remote_add_{fetch,push}()` to update the configuration
instead of an instance.

This finally makes `git_remote_save()` a no-op, it will be removed in a
later commit.
include/git2/remote.h
src/clone.c
src/remote.c
tests/network/fetchlocal.c
tests/network/remote/local.c
tests/network/remote/remotes.c
tests/online/clone.c
tests/online/push.c
tests/refs/branches/remote.c