List of commits:
Subject Hash Author Date (UTC)
Use gettimeofday instead of clock_gettime because CentOS 6 3ce67c01431ce2387cb519e5cd4b041c2fd18be3 Catalin(ux) M. BOIE 2016-05-08 20:10:44
Bump version to 0.4 475fedef08f73978ca357ba6c82ded34b3c76904 Catalin(ux) M. BOIE 2016-05-08 19:20:15
Some tests tweaking a11770078f8b1cc6c3cbcf535ca4481746cc6d6f Catalin(ux) M. BOIE 2016-05-08 19:19:49
add make to BuildRequires a54b8048424a6896ec094c6419988bf815c6e96c Catalin(ux) M. BOIE 2016-05-08 19:19:23
Duilder fixes to remove recent compiler flags 622363757f7d70dc3d9ea741c22c69b87a64a1f2 Catalin(ux) M. BOIE 2016-05-08 19:19:07
Deal correctly with hard linked files: consider them identical e26bf999477ee091e493d2dfdf6a583c98a65971 Catalin(ux) M. BOIE 2016-05-05 15:54:54
Changed scope for some variables 8e195c8a9e8972831c9e25ce36e662cd808f4953 Catalin(ux) M. BOIE 2016-03-19 11:49:15
Dump also the size of the dir/file 1c4995ce058d04f2e7ea61d370c35df220226a6b Catalin(ux) M. BOIE 2015-10-18 15:07:43
WIP 1ccb2423931f1fe25232181b9d056cdb85aefd79 Catalin(ux) M. BOIE 2015-10-04 09:45:00
WIP 6a07b5768407ffb1565471546fd9b1e1f857af48 Catalin(ux) M. BOIE 2015-10-02 22:49:33
WIP f1a3e07fc8a2b9779071537baa7457c91a7a4381 Catalin(ux) M. BOIE 2015-10-01 17:55:26
More compiler flags, several fixes as result 9b63341f8a3052dabe9a402b7c70e33a99633149 Catalin(ux) M. BOIE 2015-01-05 17:59:41
WIP b303e4a78b96847ac107e6b6b905b41629401a75 Catalin(ux) M. BOIE 2014-06-22 20:43:08
Bump version to 0.3 d8ec07e06ac315f40cf7b03e0f5c0392bcd56059 Catalin(ux) M. BOIE 2014-06-22 20:04:09
Updated TODO to reflect reality. 38351ac1d1167674339839c4518724f1ebd7bc89 Catalin(ux) M. BOIE 2014-06-22 20:03:34
Take care of mangled file name between two dirs. 65eb5f1841aae521c401ab52298041776159a35d Catalin(ux) M. BOIE 2014-06-21 12:14:36
duilder updates. Exclude Makefile when making tar.gz accfc9df80b5889b3e1f1183e5f60d70850b5671 Catalin(ux) M. BOIE 2014-06-21 06:09:12
Bump version to 0.2 078df2ea0759e4240ef7deef35744f7077957129 Catalin(ux) M. BOIE 2014-06-19 17:09:39
Fixed a case when some files were not dumped at all 0c69ce3cb20aae442da94cff9606936461177e1d Catalin(ux) M. BOIE 2014-06-19 17:05:16
First version that passes all tests. 9627508618bc2c783da838c2332e6896e3004c99 Catalin(ux) M. BOIE 2014-06-18 18:02:32
Commit 3ce67c01431ce2387cb519e5cd4b041c2fd18be3 - Use gettimeofday instead of clock_gettime because CentOS 6
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-05-08 20:10
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-05-08 20:10
Parent(s): 475fedef08f73978ca357ba6c82ded34b3c76904
Signing key:
Tree: 3ec0b8751c3ef08d2c6105e02410df9350dfd609
File Lines added Lines deleted
dupdump.c 4 3
store.c 2 1
File dupdump.c changed (mode: 100644) (index 6e342c0..c59d9bb)
11 11 #include <errno.h> #include <errno.h>
12 12 #include <getopt.h> #include <getopt.h>
13 13 #include <time.h> #include <time.h>
14 #include <sys/time.h>
14 15
15 16 #include "store.h" #include "store.h"
16 17
 
... ... int main(int argc, char *argv[])
88 89 int options_index = 0; int options_index = 0;
89 90 int c; int c;
90 91 FILE *out; FILE *out;
91 struct timespec start, end;
92 struct timeval start, end;
92 93
93 94 while ((c = getopt_long(argc, argv, "zi:o:vdh", options, &options_index)) != -1) { while ((c = getopt_long(argc, argv, "zi:o:vdh", options, &options_index)) != -1) {
94 95 switch (c) { switch (c) {
 
... ... int main(int argc, char *argv[])
131 132 fprintf(stderr, "Scanning for duplicates, min-size %llu\n", fprintf(stderr, "Scanning for duplicates, min-size %llu\n",
132 133 min_size); min_size);
133 134
134 clock_gettime(CLOCK_MONOTONIC, &start);
135 gettimeofday(&start, NULL);
135 136 while (optind < argc) { while (optind < argc) {
136 137 if (verbose) if (verbose)
137 138 fprintf(stderr, "Processing dir %s...\n", argv[optind]); fprintf(stderr, "Processing dir %s...\n", argv[optind]);
 
... ... int main(int argc, char *argv[])
170 171
171 172 dump_duplicates(min_size, zero); dump_duplicates(min_size, zero);
172 173
173 clock_gettime(CLOCK_MONOTONIC, &end);
174 gettimeofday(&end, NULL);
174 175
175 176 if (verbose) { if (verbose) {
176 177 time_t diff; time_t diff;
File store.c changed (mode: 100644) (index 59ba07e..8f737a7)
... ... __cold static void file_dump_node(const struct file_node *q,
430 430 char sha1[2][SHA_DIGEST_LENGTH * 2 + 1]; char sha1[2][SHA_DIGEST_LENGTH * 2 + 1];
431 431 char prefix[128]; char prefix[128];
432 432
433 memset(prefix, ' ', level * 2);
433 if (level)
434 memset(prefix, ' ', level * 2);
434 435 prefix[level * 2] = '\0'; prefix[level * 2] = '\0';
435 436
436 437 sha1_dump(sha1[0], q->sha1[0], 8); sha1_dump(sha1[0], q->sha1[0], 8);
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://rocketgit.com/user/catalinux/dupdump

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/dupdump

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/dupdump

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