summaryrefslogtreecommitdiff
path: root/src/branch.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-03-30 03:39:19 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2013-03-30 15:45:57 +0100
commita258d8e3574c4e993bf16e0c136d1a5fbc356728 (patch)
tree25f4fc5e103024fc592cfb568691f24a86d356b5 /src/branch.c
parent81b8c9df4642328a7d0dc0920f1489748371d275 (diff)
downloadlibgit2-a258d8e3574c4e993bf16e0c136d1a5fbc356728.tar.gz
branch: rename 'tracking' to 'upstream'
The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
Diffstat (limited to 'src/branch.c')
-rw-r--r--src/branch.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/branch.c b/src/branch.c
index 45ecca751..56c63a82a 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -228,7 +228,7 @@ int git_branch_name(const char **out, git_reference *ref)
return 0;
}
-static int retrieve_tracking_configuration(
+static int retrieve_upstream_configuration(
const char **out,
git_repository *repo,
const char *canonical_branch_name,
@@ -250,7 +250,7 @@ static int retrieve_tracking_configuration(
return error;
}
-int git_branch_tracking__name(
+int git_branch_upstream__name(
git_buf *tracking_name,
git_repository *repo,
const char *canonical_branch_name)
@@ -266,11 +266,11 @@ int git_branch_tracking__name(
if (!git_reference__is_branch(canonical_branch_name))
return not_a_local_branch(canonical_branch_name);
- if ((error = retrieve_tracking_configuration(
+ if ((error = retrieve_upstream_configuration(
&remote_name, repo, canonical_branch_name, "branch.%s.remote")) < 0)
goto cleanup;
- if ((error = retrieve_tracking_configuration(
+ if ((error = retrieve_upstream_configuration(
&merge_name, repo, canonical_branch_name, "branch.%s.merge")) < 0)
goto cleanup;
@@ -386,7 +386,7 @@ cleanup:
return error;
}
-int git_branch_tracking_name(
+int git_branch_upstream_name(
char *tracking_branch_name_out,
size_t buffer_size,
git_repository *repo,
@@ -400,7 +400,7 @@ int git_branch_tracking_name(
if (tracking_branch_name_out && buffer_size)
*tracking_branch_name_out = '\0';
- if ((error = git_branch_tracking__name(
+ if ((error = git_branch_upstream__name(
&buf, repo, canonical_branch_name)) < 0)
goto cleanup;
@@ -422,14 +422,14 @@ cleanup:
return (int)error;
}
-int git_branch_tracking(
+int git_branch_upstream(
git_reference **tracking_out,
git_reference *branch)
{
int error;
git_buf tracking_name = GIT_BUF_INIT;
- if ((error = git_branch_tracking__name(&tracking_name,
+ if ((error = git_branch_upstream__name(&tracking_name,
git_reference_owner(branch), git_reference_name(branch))) < 0)
return error;