@@ -64,7 +64,7 @@ int install_branch_config(int flag, const char *local, const char *origin, const
64
64
if (skip_prefix (remote , "refs/heads/" , & shortname )
65
65
&& !strcmp (local , shortname )
66
66
&& !origin ) {
67
- warning (_ ("Not setting branch %s as its own upstream. " ),
67
+ warning (_ ("not setting branch %s as its own upstream" ),
68
68
local );
69
69
return 0 ;
70
70
}
@@ -116,7 +116,7 @@ int install_branch_config(int flag, const char *local, const char *origin, const
116
116
117
117
out_err :
118
118
strbuf_release (& key );
119
- error (_ ("Unable to write upstream branch configuration" ));
119
+ error (_ ("unable to write upstream branch configuration" ));
120
120
121
121
advise (_ (tracking_advice ),
122
122
origin ? origin : "" ,
@@ -153,7 +153,7 @@ static void setup_tracking(const char *new_ref, const char *orig_ref,
153
153
}
154
154
155
155
if (tracking .matches > 1 )
156
- die (_ ("Not tracking: ambiguous information for ref %s" ),
156
+ die (_ ("not tracking: ambiguous information for ref %s" ),
157
157
orig_ref );
158
158
159
159
if (install_branch_config (config_flags , new_ref , tracking .remote ,
@@ -186,7 +186,7 @@ int read_branch_desc(struct strbuf *buf, const char *branch_name)
186
186
int validate_branchname (const char * name , struct strbuf * ref )
187
187
{
188
188
if (strbuf_check_branch_ref (ref , name ))
189
- die (_ ("'%s' is not a valid branch name. " ), name );
189
+ die (_ ("'%s' is not a valid branch name" ), name );
190
190
191
191
return ref_exists (ref -> buf );
192
192
}
@@ -205,12 +205,12 @@ int validate_new_branchname(const char *name, struct strbuf *ref, int force)
205
205
return 0 ;
206
206
207
207
if (!force )
208
- die (_ ("A branch named '%s' already exists. " ),
208
+ die (_ ("a branch named '%s' already exists" ),
209
209
ref -> buf + strlen ("refs/heads/" ));
210
210
211
211
head = resolve_ref_unsafe ("HEAD" , 0 , NULL , NULL );
212
212
if (!is_bare_repository () && head && !strcmp (head , ref -> buf ))
213
- die (_ ("Cannot force update the current branch. " ));
213
+ die (_ ("cannot force update the current branch" ));
214
214
215
215
return 1 ;
216
216
}
@@ -230,7 +230,7 @@ static int validate_remote_tracking_branch(char *ref)
230
230
}
231
231
232
232
static const char upstream_not_branch [] =
233
- N_ ("Cannot setup tracking information; starting point '%s' is not a branch. " );
233
+ N_ ("cannot set up tracking information; starting point '%s' is not a branch" );
234
234
static const char upstream_missing [] =
235
235
N_ ("the requested upstream branch '%s' does not exist" );
236
236
static const char upstream_advice [] =
@@ -278,7 +278,7 @@ void create_branch(struct repository *r,
278
278
}
279
279
die (_ (upstream_missing ), start_name );
280
280
}
281
- die (_ ("Not a valid object name: '%s'. " ), start_name );
281
+ die (_ ("not a valid object name: '%s'" ), start_name );
282
282
}
283
283
284
284
switch (dwim_ref (start_name , strlen (start_name ), & oid , & real_ref , 0 )) {
@@ -298,12 +298,12 @@ void create_branch(struct repository *r,
298
298
}
299
299
break ;
300
300
default :
301
- die (_ ("Ambiguous object name: '%s'. " ), start_name );
301
+ die (_ ("ambiguous object name: '%s'" ), start_name );
302
302
break ;
303
303
}
304
304
305
305
if ((commit = lookup_commit_reference (r , & oid )) == NULL )
306
- die (_ ("Not a valid branch point: '%s'. " ), start_name );
306
+ die (_ ("not a valid branch point: '%s'" ), start_name );
307
307
oidcpy (& oid , & commit -> object .oid );
308
308
309
309
if (reflog )
0 commit comments