xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 2c30364047be15b93bbbcf507e6bd5f71fa057cd

Reduce variable scope in make_diff_list()
Found by cppcheck.
Author: xaizek
Author date (UTC): 2017-05-25 20:40
Committer name: xaizek
Committer date (UTC): 2017-05-25 20:41
Parent(s): 42306a31c1fe88b35a577c24e2e28d7c65a28e2b
Signing key: 99DC5E4DB05F6BE2
Tree: 2231fccbe955bc39dcc2b442af677988582c0fd1
File Lines added Lines deleted
src/compare.c 2 1
File src/compare.c changed (mode: 100644) (index 290ce2a8c..334eaa02b)
... ... make_diff_list(trie_t *trie, FileView *view, int *next_id, CompareType ct,
505 505 show_progress("Querying...", 0); show_progress("Querying...", 0);
506 506 for(i = 0; i < files.nitems && !ui_cancellation_requested(); ++i) for(i = 0; i < files.nitems && !ui_cancellation_requested(); ++i)
507 507 { {
508 char progress_msg[128];
509 508 int progress; int progress;
510 509 int existing_id; int existing_id;
511 510 char *fingerprint; char *fingerprint;
 
... ... make_diff_list(trie_t *trie, FileView *view, int *next_id, CompareType ct,
552 551 progress = (i*100)/files.nitems; progress = (i*100)/files.nitems;
553 552 if(progress != last_progress) if(progress != last_progress)
554 553 { {
554 char progress_msg[128];
555
555 556 last_progress = progress; last_progress = progress;
556 557 snprintf(progress_msg, sizeof(progress_msg), "Querying... %d (% 2d%%)", i, snprintf(progress_msg, sizeof(progress_msg), "Querying... %d (% 2d%%)", i,
557 558 progress); progress);
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master