]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
6 years agoSupport .d dependency file generation via environment variables 349/head
Maarten Maathuis [Fri, 11 Jan 2019 23:29:36 +0000 (00:29 +0100)] 
Support .d dependency file generation via environment variables

Previously "DEPENDENCIES_OUTPUT="test.d" gcc -c test.c" and
"SUNPRO_DEPENDENCIES="test.d" gcc -c test.c" would not cache
the .d dependency files.

6 years agoRename sloppiness no_system_headers to system_headers for consistency
Joel Rosdahl [Wed, 9 Jan 2019 19:50:20 +0000 (20:50 +0100)] 
Rename sloppiness no_system_headers to system_headers for consistency

no_system_headers can still be used as an (undocumented) alias.

Closes #337.

6 years agoImprove markup of NEWS
Joel Rosdahl [Wed, 9 Jan 2019 19:44:36 +0000 (20:44 +0100)] 
Improve markup of NEWS

6 years agoHash environment variables related to locale
Joel Rosdahl [Wed, 9 Jan 2019 19:06:43 +0000 (20:06 +0100)] 
Hash environment variables related to locale

This avoids emitting incorrect compiler warning messages when switching
locale settings.

Fixes #327.

6 years agoDefine sloppiness constants by shifting
Joel Rosdahl [Wed, 9 Jan 2019 18:46:36 +0000 (19:46 +0100)] 
Define sloppiness constants by shifting

6 years agoFix spelling (#345)
Josh Soref [Mon, 7 Jan 2019 15:40:38 +0000 (10:40 -0500)] 
Fix spelling (#345)

6 years agoFix link to cache debugging section (#346)
Josh Soref [Mon, 7 Jan 2019 11:58:10 +0000 (06:58 -0500)] 
Fix link to cache debugging section (#346)

6 years agoImprove buildenv/README
Joel Rosdahl [Sat, 5 Jan 2019 21:51:42 +0000 (22:51 +0100)] 
Improve buildenv/README

6 years agoRename base directory to buildenv as discussed in #278
Joel Rosdahl [Sat, 5 Jan 2019 21:46:31 +0000 (22:46 +0100)] 
Rename base directory to buildenv as discussed in #278

6 years agoImprovement and upgrade of Docker build (#278)
Anders Björklund [Sat, 5 Jan 2019 21:42:11 +0000 (22:42 +0100)] 
Improvement and upgrade of Docker build (#278)

Allow using different Docker images for testing ccache build in different build
environments.

6 years agoGenererate confitem number fields in confitems.gperf
Joel Rosdahl [Sat, 5 Jan 2019 09:56:13 +0000 (10:56 +0100)] 
Genererate confitem number fields in confitems.gperf

When merging diverging confitems.gperf changes it is always a hassle to
regenerate the config number sequence fields by hand, and they also
trigger merge conflicts. Those numbers are now instead generated
automatically.

6 years agoDon’t store pregenerated config lookup tables in the repo
Joel Rosdahl [Fri, 4 Jan 2019 08:54:29 +0000 (09:54 +0100)] 
Don’t store pregenerated config lookup tables in the repo

We have had a requirement on gperf for the build-from-repo case for a
while now, so there is no real point in keeping generated gperf lookup
table code in the repository.

6 years agoFix link from license page to credits page
Joel Rosdahl [Sat, 5 Jan 2019 20:46:36 +0000 (21:46 +0100)] 
Fix link from license page to credits page

6 years agoFix clang warning with older compiler versions
Anders F Björklund [Thu, 3 Jan 2019 15:57:02 +0000 (16:57 +0100)] 
Fix clang warning with older compiler versions

Don't hardcode the clang version, apparently clang-3.8
did have the warning even though clang-3.4 did not...

6 years agoUpdate NEWS
Joel Rosdahl [Thu, 3 Jan 2019 10:30:25 +0000 (11:30 +0100)] 
Update NEWS

6 years agoExtract common hash table initialization code to helper function
Joel Rosdahl [Thu, 3 Jan 2019 07:45:32 +0000 (08:45 +0100)] 
Extract common hash table initialization code to helper function

6 years agoDisable depend mode if the unifier is enabled
Joel Rosdahl [Thu, 3 Jan 2019 07:40:47 +0000 (08:40 +0100)] 
Disable depend mode if the unifier is enabled

6 years agoImprove documentation of the depend mode
Joel Rosdahl [Thu, 3 Jan 2019 07:34:56 +0000 (08:34 +0100)] 
Improve documentation of the depend mode

6 years agoImprove code style and comments
Joel Rosdahl [Wed, 2 Jan 2019 21:12:27 +0000 (22:12 +0100)] 
Improve code style and comments

6 years agoPlug resource leaks
Joel Rosdahl [Wed, 2 Jan 2019 21:03:42 +0000 (22:03 +0100)] 
Plug resource leaks

6 years agoFix depend mode test case when $COMPILER is a ccache symlink
Joel Rosdahl [Wed, 2 Jan 2019 20:55:24 +0000 (21:55 +0100)] 
Fix depend mode test case when $COMPILER is a ccache symlink

Need to use $REAL_COMPILER instead of $COMPILER in test cases.

6 years agoMerge pull request #301 from afbjorklund/depend_mode
Joel Rosdahl [Thu, 3 Jan 2019 13:33:52 +0000 (14:33 +0100)] 
Merge pull request #301 from afbjorklund/depend_mode

Add depend mode (avoid the preprocessor).

When using run_second_cpp (which is the default now), ccache executes
the preprocessor just to determine the object hash, and will do so for
every cache miss. While compiling, the same work is done again.

When executing a massively parallel build using ccache and distcc,
the system controlling the build can get a fairly high load because of
all these ccache-only preprocessor executions.

This is based on the work of Geert Kloosterman with remaining items addressed.

Closes #234.

6 years agoMerge branch 'master' into depend_mode 301/head
Joel Rosdahl [Wed, 2 Jan 2019 18:48:42 +0000 (19:48 +0100)] 
Merge branch 'master' into depend_mode

6 years agoFix getopt_long.c compilation warning in an easier way
Joel Rosdahl [Wed, 2 Jan 2019 15:24:56 +0000 (16:24 +0100)] 
Fix getopt_long.c compilation warning in an easier way

Fixes #340 in an alternative way (see also #341).

6 years agoMerge branch '3.5-maint'
Joel Rosdahl [Wed, 2 Jan 2019 15:21:01 +0000 (16:21 +0100)] 
Merge branch '3.5-maint'

* 3.5-maint:
  Add NEWS for v3.5.1
  Update copyright years
  Add missing getopt_long.c source file to dist (#341)

6 years agoAdd NEWS for v3.5.1 v3.5.1
Joel Rosdahl [Wed, 2 Jan 2019 15:19:06 +0000 (16:19 +0100)] 
Add NEWS for v3.5.1

6 years agoUpdate copyright years
Joel Rosdahl [Wed, 2 Jan 2019 15:18:50 +0000 (16:18 +0100)] 
Update copyright years

6 years agoAdd missing getopt_long.c source file to dist (#341)
Anders Björklund [Wed, 2 Jan 2019 12:52:32 +0000 (13:52 +0100)] 
Add missing getopt_long.c source file to dist (#341)

Missed to include this when making compilation optional.

Closes #340.

6 years agoUpdate NEWS
Joel Rosdahl [Mon, 10 Dec 2018 20:13:51 +0000 (21:13 +0100)] 
Update NEWS

6 years agoAdd test case for clang_index_store sloppiness
Joel Rosdahl [Mon, 10 Dec 2018 20:11:17 +0000 (21:11 +0100)] 
Add test case for clang_index_store sloppiness

6 years agoTweak code style and manual after 6e1916c7
Joel Rosdahl [Mon, 10 Dec 2018 20:04:48 +0000 (21:04 +0100)] 
Tweak code style and manual after 6e1916c7

6 years agoSkip '-index-store-path' when building with Xcode (#333)
jonnyyu [Mon, 10 Dec 2018 19:49:22 +0000 (03:49 +0800)] 
Skip '-index-store-path' when building with Xcode (#333)

In Xcode 9 or later, Xcode calls clang with this
new '-index-store-path' option.
The Xcode usually sets IndexStore directory under
a unique build location. This might break the manifest,
especially when cache is shared among multple machines.

6 years agoSort .mailcap
Joel Rosdahl [Sun, 9 Dec 2018 18:54:03 +0000 (19:54 +0100)] 
Sort .mailcap

6 years agoUpdate NEWS
Joel Rosdahl [Sun, 9 Dec 2018 18:23:13 +0000 (19:23 +0100)] 
Update NEWS

6 years agoAdd jonnyyu’s email address to .mailcap
Joel Rosdahl [Sun, 9 Dec 2018 18:22:02 +0000 (19:22 +0100)] 
Add jonnyyu’s email address to .mailcap

6 years agoTweak test case to test changes in a68ccd96
Joel Rosdahl [Sun, 9 Dec 2018 18:20:00 +0000 (19:20 +0100)] 
Tweak test case to test changes in a68ccd96

6 years agoHandle several levels of nonexistent directories in make_relative_path (#334)
jonnyyu [Sun, 9 Dec 2018 18:15:58 +0000 (02:15 +0800)] 
Handle several levels of nonexistent directories in make_relative_path (#334)

Currently, ccache supports calculating relative path
for 1 level non-exist path. That is to say,
if the given path does not exist, however if its
parent directory exists, then ccache can calculate
the relative path correctly.

Unfortunately this doesn't fit the needs.
Xcode build system always adds these paths into header search path:
xxxxx/DerivedResources/x86-64
xxxxx/DerivedResources

these paths are build outputs for build rules.
For projects which doesn't use build rule to generate files
these directories do not exist.

So this change refine the logic of make_relative_path
to recursively go up find the nearest existing directory
and use the remaining path as path_suffix.

6 years agoAdd compile_commands.json to .gitignore
Joel Rosdahl [Mon, 3 Dec 2018 21:37:43 +0000 (22:37 +0100)] 
Add compile_commands.json to .gitignore

6 years agoAdd target for running clang-tidy on ccache (#316)
Anders Björklund [Mon, 3 Dec 2018 21:31:18 +0000 (22:31 +0100)] 
Add target for running clang-tidy on ccache (#316)

6 years agoUpdate NEWS
Joel Rosdahl [Mon, 3 Dec 2018 20:39:26 +0000 (21:39 +0100)] 
Update NEWS

6 years agoClarify the reasoning behind the “file_macro” sloppiness setting
Joel Rosdahl [Mon, 3 Dec 2018 20:37:15 +0000 (21:37 +0100)] 
Clarify the reasoning behind the “file_macro” sloppiness setting

Related to #332.

6 years agoFix code style
Joel Rosdahl [Mon, 3 Dec 2018 20:14:19 +0000 (21:14 +0100)] 
Fix code style

6 years agoHandle bug where clang doesn't unlink output file (#335)
Anders Björklund [Mon, 3 Dec 2018 20:04:35 +0000 (21:04 +0100)] 
Handle bug where clang doesn't unlink output file (#335)

When using assembler, clang doesn't unlink output.

On the other hand, gcc seems to handle this fine.

Closes #331

6 years agoSupport multiple -fsanitize-blacklist arguments (#330)
Joel Galenson [Sun, 2 Dec 2018 19:27:21 +0000 (11:27 -0800)] 
Support multiple -fsanitize-blacklist arguments (#330)

This modifies the code to support multiple -fsanitize-blacklist
arguments, which prevents ccache from incorrectly using a cached
result when one of the blacklist files has changed.

This fixes #318.

6 years agoUpdate NEWS
Joel Rosdahl [Wed, 7 Nov 2018 19:41:50 +0000 (20:41 +0100)] 
Update NEWS

6 years agoTweak code style
Joel Rosdahl [Wed, 7 Nov 2018 19:39:02 +0000 (20:39 +0100)] 
Tweak code style

6 years agoSupport gcc-8 -ffile-prefix-map
Michał Mirosław [Wed, 7 Nov 2018 15:20:24 +0000 (16:20 +0100)] 
Support gcc-8 -ffile-prefix-map

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268

6 years agoUse double for limit_multiple
Joel Rosdahl [Wed, 24 Oct 2018 20:10:41 +0000 (22:10 +0200)] 
Use double for limit_multiple

This allows for removing the -Wno-double-promotion and
-Wno-float-conversion options which are not available for the clang
version currently used for “make analyze”.

6 years agoFix constness of struct stats_info message member
Joel Rosdahl [Wed, 24 Oct 2018 20:06:19 +0000 (22:06 +0200)] 
Fix constness of struct stats_info message member

6 years agoRefactor conf item lookup code
Joel Rosdahl [Sat, 20 Oct 2018 20:42:55 +0000 (22:42 +0200)] 
Refactor conf item lookup code

- Extracted parse/format/verify functions into a separate confitems.c
  file.
- The *_lookup.c files are now compilation units of their own instead of
  being included inside conf.c. This feels cleaner, and also relieves
  cppcheck from having to check dirty, autogenerated code.

6 years agoIgnore cppcheck “Resource leak” warnings in test code
Joel Rosdahl [Sat, 20 Oct 2018 12:22:47 +0000 (14:22 +0200)] 
Ignore cppcheck “Resource leak” warnings in test code

It’s not worth the effort to write leak-free code for test failure code
paths.

6 years agoInclude error/warning ID in cppcheck output
Joel Rosdahl [Sat, 20 Oct 2018 12:20:26 +0000 (14:20 +0200)] 
Include error/warning ID in cppcheck output

6 years agoUse sizeof instead of repeating buffer size
Joel Rosdahl [Sat, 20 Oct 2018 12:15:11 +0000 (14:15 +0200)] 
Use sizeof instead of repeating buffer size

6 years agoDon’t pass CFLAGS to the linker
Joel Rosdahl [Sat, 20 Oct 2018 11:50:40 +0000 (13:50 +0200)] 
Don’t pass CFLAGS to the linker

6 years agoImprove distcheck
Joel Rosdahl [Sat, 20 Oct 2018 11:19:57 +0000 (13:19 +0200)] 
Improve distcheck

- Build with more warnings.
- Added an extra build with clang.
- Build with -Werror to actually catch the errors.

6 years agoAlways enable “more warnings” in dev mode
Joel Rosdahl [Sat, 20 Oct 2018 11:15:31 +0000 (13:15 +0200)] 
Always enable “more warnings” in dev mode

6 years agoSort list
Joel Rosdahl [Sat, 20 Oct 2018 11:04:46 +0000 (13:04 +0200)] 
Sort list

6 years agoFix missing header include / prototype
Anders F Björklund [Sat, 20 Oct 2018 10:46:23 +0000 (12:46 +0200)] 
Fix missing header include / prototype

no previous prototype for function 'unify_hash'

6 years agoFix const-correctness of the config formatter
Anders F Björklund [Sat, 20 Oct 2018 10:43:20 +0000 (12:43 +0200)] 
Fix const-correctness of the config formatter

Both strdup and format are returning "char *"

6 years agoIgnore return value from fwrite when writing debug log
Joel Rosdahl [Tue, 16 Oct 2018 18:32:01 +0000 (20:32 +0200)] 
Ignore return value from fwrite when writing debug log

This silences some compilers’ warnings about ignoring return value of
fwrite.

There’s not much we can do if they fail, and it’s also not important
enough to e.g. call failed() for the debug logs.

6 years agoRemove unused return value from cc_dump_log_buffer
Joel Rosdahl [Tue, 16 Oct 2018 18:31:45 +0000 (20:31 +0200)] 
Remove unused return value from cc_dump_log_buffer

6 years agoAdd Xavier René-Corail to .mailcap
Joel Rosdahl [Mon, 15 Oct 2018 20:10:22 +0000 (22:10 +0200)] 
Add Xavier René-Corail to .mailcap

6 years agoPrepare for v3.5 v3.5
Joel Rosdahl [Mon, 15 Oct 2018 19:28:34 +0000 (21:28 +0200)] 
Prepare for v3.5

6 years agoAdd -Wno-implicit-fallthrough for zlib build in non-dev mode as well
Joel Rosdahl [Mon, 15 Oct 2018 19:28:05 +0000 (21:28 +0200)] 
Add -Wno-implicit-fallthrough for zlib build in non-dev mode as well

6 years agoAdd some more silent make rules
Joel Rosdahl [Mon, 15 Oct 2018 19:22:58 +0000 (21:22 +0200)] 
Add some more silent make rules

6 years agoRemove obsolete cppcheck suppression
Joel Rosdahl [Mon, 15 Oct 2018 19:09:06 +0000 (21:09 +0200)] 
Remove obsolete cppcheck suppression

6 years agoMake cppcheck find config.h
Joel Rosdahl [Mon, 15 Oct 2018 19:08:51 +0000 (21:08 +0200)] 
Make cppcheck find config.h

6 years agoAdd assert in language_is_preprocessed
Joel Rosdahl [Mon, 15 Oct 2018 19:04:51 +0000 (21:04 +0200)] 
Add assert in language_is_preprocessed

This seems to make scan-build happy.

6 years agoUpdate NEWS
Joel Rosdahl [Sun, 14 Oct 2018 20:29:14 +0000 (22:29 +0200)] 
Update NEWS

6 years agoTweak silent make rule printouts
Joel Rosdahl [Sun, 14 Oct 2018 20:28:39 +0000 (22:28 +0200)] 
Tweak silent make rule printouts

6 years agoDefault to silent make rules unconditionally
Joel Rosdahl [Sun, 14 Oct 2018 20:18:25 +0000 (22:18 +0200)] 
Default to silent make rules unconditionally

6 years agoAdd configure option for silent make rules
Anders F Björklund [Wed, 3 Oct 2018 18:25:24 +0000 (20:25 +0200)] 
Add configure option for silent make rules

Adopted from AM_SILENT_RULES, default to no

6 years agoSort commandline option list
Joel Rosdahl [Sun, 14 Oct 2018 20:01:58 +0000 (22:01 +0200)] 
Sort commandline option list

6 years agoFix alignment and indentation
Joel Rosdahl [Sun, 14 Oct 2018 19:59:40 +0000 (21:59 +0200)] 
Fix alignment and indentation

6 years agoNew command-line option -k/--get-config prints the value of a config key
Gabriel Scherer [Sun, 10 Jun 2018 10:53:04 +0000 (12:53 +0200)] 
New command-line option -k/--get-config prints the value of a config key

We print exactly the value of the configuration setting, rather
than a full item pair "(origin) key = value" as --print-config does.

This is useful for scripting. For example, $(ccache -k cache_dir)
gives the cache directory path.

6 years agoUse the per-item printers in conf_print_items
Gabriel Scherer [Sun, 10 Jun 2018 10:35:12 +0000 (12:35 +0200)] 
Use the per-item printers in conf_print_items

6 years agoAdd a confitem field for entry printing, and a printer for each type
Gabriel Scherer [Sun, 10 Jun 2018 09:59:15 +0000 (11:59 +0200)] 
Add a confitem field for entry printing, and a printer for each type

6 years agoUse memcpy instead of strncpy in append_log
Joel Rosdahl [Sun, 14 Oct 2018 19:37:57 +0000 (21:37 +0200)] 
Use memcpy instead of strncpy in append_log

We’re copying a known amount of bytes; strncpy is almost never the right
solution.

6 years agoPass -Wno-implicit-fallthrough when compiling bundled zlib
Joel Rosdahl [Sat, 13 Oct 2018 12:02:47 +0000 (14:02 +0200)] 
Pass -Wno-implicit-fallthrough when compiling bundled zlib

It’s of no use to get warnings for 3pp code.

6 years agoMinor fixes for cygwin/msys2
Rafael Kitover [Tue, 25 Sep 2018 23:55:35 +0000 (16:55 -0700)] 
Minor fixes for cygwin/msys2

Add -Wno-error=implicit-fallthrough, if the compiler supports it,  to
dev.mk so that zlib will compile with -Werror.

Disable -Wdeprecated-declarations in the mkstemp() shim in util.c so
that it compiles with -Werror.

Stop assuming that mkstemp() is broken on cygwin, I could not find any
documentation for this.

Fix a couple of erroneous checks in zlib that assume cygwin is the same
as win32.

6 years agoClean up includes
Joel Rosdahl [Sun, 7 Oct 2018 20:05:04 +0000 (22:05 +0200)] 
Clean up includes

6 years agoFix bugs in debug mode logging
Joel Rosdahl [Sun, 7 Oct 2018 19:06:08 +0000 (21:06 +0200)] 
Fix bugs in debug mode logging

Need to dump log buffer as the last exit function to not lose any logs.
Also, made sure to print the final result log line even if the log mode
isn’t enabled.

6 years agoFix debug mode bug in cc_log_argv
Joel Rosdahl [Sun, 7 Oct 2018 18:50:37 +0000 (20:50 +0200)] 
Fix debug mode bug in cc_log_argv

6 years agoRefactor debug mode code
Joel Rosdahl [Sun, 7 Oct 2018 18:40:55 +0000 (20:40 +0200)] 
Refactor debug mode code

Knowledge of the debug mode snuck into the mdfour struct and code, which
did not feel good.

* Introduced a new “struct hash”, which is used by the hash_* functions
  instead of “struct mdfour”. “struct hash” contains the mdfour state
  and also debug file handles that can be set via a new
  hash_enable_debug function.
* Removed “identifier” from the mdfour struct and code.
* Introduced hash.h and all documented hash_* functions.
* Introduced unify.h.
* Removed some global state from util.c.

6 years agoAdd LGTM.com code quality badges
Xavier RENE-CORAIL [Fri, 14 Sep 2018 11:06:53 +0000 (12:06 +0100)] 
Add LGTM.com code quality badges

6 years agoFix Clang warning “declaration shadows a local variable”
Joel Rosdahl [Tue, 2 Oct 2018 19:48:47 +0000 (21:48 +0200)] 
Fix Clang warning “declaration shadows a local variable”

6 years agoMove ATTR_NORETURN function declarations closer to the definition
Joel Rosdahl [Tue, 2 Oct 2018 19:47:15 +0000 (21:47 +0200)] 
Move ATTR_NORETURN function declarations closer to the definition

6 years agoRemove superfluous “extern” function declarations from a9e8810f
Joel Rosdahl [Tue, 2 Oct 2018 19:45:25 +0000 (21:45 +0200)] 
Remove superfluous “extern” function declarations from a9e8810f

Function declarations are extern by default.

6 years agoMerge remote-tracking branch 'afbjorklund/everything'
Joel Rosdahl [Tue, 2 Oct 2018 19:33:27 +0000 (21:33 +0200)] 
Merge remote-tracking branch 'afbjorklund/everything'

* afbjorklund/everything:
  Make configure work with older clang versions
  Add option for enabling more compiler warnings
  Add configure support for detecting clang
  Avoid bad function cast by using temporary
  Proper use of const qualifier char* strings
  Removed locally shadowed global variables
  Don't use undefined macros, use ifdef instead
  Add noreturn to functions that don't return
  Add missing extern prototypes, or make static
  Don't use reserved id macros in the headers
  Only compile getopt_long.c when needed
  Address issues found by lgtm.com alerts

6 years agoUpdate NEWS
Joel Rosdahl [Tue, 2 Oct 2018 19:28:39 +0000 (21:28 +0200)] 
Update NEWS

6 years agoFix configure arg --without-bundled-zlib
Rafael Kitover [Wed, 12 Sep 2018 10:24:54 +0000 (03:24 -0700)] 
Fix configure arg --without-bundled-zlib

If the result of the AC_ARG_WITH check is 'no', assume system zlib.

6 years agoUpdate uncrustify config and run uncrustify version 0.66.1_f
Joel Rosdahl [Tue, 2 Oct 2018 18:51:12 +0000 (20:51 +0200)] 
Update uncrustify config and run uncrustify version 0.66.1_f

6 years agoRemove bogus out-of-memory check in reformat()
Joel Rosdahl [Tue, 2 Oct 2018 18:31:01 +0000 (20:31 +0200)] 
Remove bogus out-of-memory check in reformat()

6 years agoUpdate NEWS
Joel Rosdahl [Tue, 2 Oct 2018 18:26:13 +0000 (20:26 +0200)] 
Update NEWS

6 years agoImprove debug mode documentation
Joel Rosdahl [Tue, 2 Oct 2018 18:19:16 +0000 (20:19 +0200)] 
Improve debug mode documentation

6 years agoImprove debug log filenames
Joel Rosdahl [Tue, 2 Oct 2018 18:15:32 +0000 (20:15 +0200)] 
Improve debug log filenames

The “<objectfile>.ccache-hashX” files are also input data, so I think
that calling the “human-readable” version “<objectfile>.ccache-input” a
bit unpedagogical. Changes:

<objectfile>.ccache-hashX -> <objectfile>.ccache-input-X
<objectfile>.ccache-input -> <objectfile>.ccache-input-text

6 years agoMerge remote-tracking branch 'afbjorklund/hash_debug' into pr/279
Joel Rosdahl [Sat, 29 Sep 2018 19:48:41 +0000 (21:48 +0200)] 
Merge remote-tracking branch 'afbjorklund/hash_debug' into pr/279

* afbjorklund/hash_debug:
  Register debug_end as an exit function instead
  Avoid using strcat and small realloc
  Rename helper functions, as suggested in review
  Save debug file streams, instead of reopening
  Add section markers, to the text file
  Rename hash_debug, add matching end function
  Improve documentation with example file names
  Output log to debug, even without a logfile
  Avoid global md variable in mdfour file
  Add --hash-file command, for convenience
  Add functionality to debug the hashing
  Add feature to also log into a memory buffer
  Add config for debug option ($CCACHE_DEBUG)
  Add util to return the command as a string

6 years agoUpdate NEWS
Joel Rosdahl [Sun, 23 Sep 2018 19:51:23 +0000 (21:51 +0200)] 
Update NEWS

6 years agoImprove documentation of file_stat_matches_ctime
Joel Rosdahl [Sun, 23 Sep 2018 19:50:04 +0000 (21:50 +0200)] 
Improve documentation of file_stat_matches_ctime

6 years agoAdd option to disable ctime check for manifest
Anders F Björklund [Tue, 3 Jul 2018 21:01:26 +0000 (23:01 +0200)] 
Add option to disable ctime check for manifest

Make it possible to use e.g. "git-restore-mtime"*,
to use the original timestamps and avoid checksums.

* https://github.com/MestreLion/git-tools

Restoring ctime is much harder than restoring mtime,
since you need to change the system clock to do it.