Skip to content

Commit 0cd4e35

Browse files
committedNov 17, 2019
Change 'changes' to pending
1 parent 30b5d01 commit 0cd4e35

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
 

Diff for: ‎src/info.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct Info {
2727
last_change: String,
2828
repo: String,
2929
commits: String,
30-
changes: String,
30+
pending: String,
3131
repo_size: String,
3232
number_of_lines: usize,
3333
license: String,
@@ -192,11 +192,11 @@ impl std::fmt::Display for Info {
192192
)?;
193193
}
194194

195-
if !self.disable_fields.changes && self.changes != "" {
195+
if !self.disable_fields.pending && self.pending != "" {
196196
write_buf(
197197
&mut buf,
198-
&self.get_formatted_info_label("Changes: ", color),
199-
&self.changes,
198+
&self.get_formatted_info_label("Pending: ", color),
199+
&self.pending,
200200
)?;
201201
}
202202

@@ -313,7 +313,7 @@ impl Info {
313313
let (git_v, git_user) = Info::get_git_info(workdir_str);
314314
let version = Info::get_version(workdir_str)?;
315315
let commits = Info::get_commits(workdir_str, no_merges)?;
316-
let changes = Info::get_pending_changes(workdir_str)?;
316+
let pending = Info::get_pending_pending(workdir_str)?;
317317
let repo_size = Info::get_packed_size(workdir_str)?;
318318
let last_change = Info::get_last_change(workdir_str)?;
319319
let creation_date = Info::get_creation_time(workdir_str)?;
@@ -334,7 +334,7 @@ impl Info {
334334
last_change,
335335
repo: config.repository_url,
336336
commits,
337-
changes,
337+
pending,
338338
repo_size,
339339
number_of_lines,
340340
license: project_license,
@@ -513,7 +513,7 @@ impl Info {
513513
}
514514
}
515515

516-
fn get_pending_changes(dir: &str) -> Result<String> {
516+
fn get_pending_pending(dir: &str) -> Result<String> {
517517
let output = Command::new("git")
518518
.arg("-C")
519519
.arg(dir)

Diff for: ‎src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct InfoFieldOn {
5757
last_change: bool,
5858
repo: bool,
5959
commits: bool,
60-
changes: bool,
60+
pending: bool,
6161
lines_of_code: bool,
6262
size: bool,
6363
license: bool,
@@ -76,7 +76,7 @@ enum InfoFields {
7676
LastChange,
7777
Repo,
7878
Commits,
79-
Changes,
79+
Pending,
8080
LinesOfCode,
8181
Size,
8282
License,
@@ -260,7 +260,7 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
260260
InfoFields::Authors => disable_fields.authors = true,
261261
InfoFields::LastChange => disable_fields.last_change = true,
262262
InfoFields::Repo => disable_fields.repo = true,
263-
InfoFields::Changes => disable_fields.changes = true,
263+
InfoFields::Pending => disable_fields.pending = true,
264264
InfoFields::Commits => disable_fields.commits = true,
265265
InfoFields::LinesOfCode => disable_fields.lines_of_code = true,
266266
InfoFields::Size => disable_fields.size = true,

0 commit comments

Comments
 (0)
Please sign in to comment.