summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* also follow precision from balance assignmentHEADmasterKuang-che Wu2024-10-113-2/+12
| | | | Fixes #2129
* Merge pull request #2386 from ↵Alexis Hildebrandt2024-10-031-1/+1
|\ | | | | | | ledger/dependabot/github_actions/cachix/install-nix-action-30
| * chore(deps): bump cachix/install-nix-action from 29 to 30dependabot[bot]2024-10-031-1/+1
|/ | | | | | | | | | | | | | Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 29 to 30. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v29...v30) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #2385 from ↵Alexis Hildebrandt2024-09-261-1/+1
|\ | | | | | | | | ledger/dependabot/github_actions/cachix/install-nix-action-v29 chore(deps): bump cachix/install-nix-action from V28 to 29
| * chore(deps): bump cachix/install-nix-action from V28 to 29dependabot[bot]2024-09-261-1/+1
|/ | | | | | | | | | | | | Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V28 to 29. This release includes the previously tagged commit. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/V28...v29) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #2381 from dbear496/update-boostAlexis Hildebrandt2024-09-160-0/+0
|\
| * use sha1sum in anonymize_posts::operator()dbear4962024-09-142-15/+3
| |
| * promote compatability with Boost <1.86.0dbear4962024-09-142-18/+28
| |
| * update to Boost 1.86.0dbear4962024-09-132-8/+8
| | | | | | | | fixes #2378
* | remove exception specificationsdbear4962024-09-161-34/+4
| |
* | update to C++17dbear4962024-09-161-1/+1
| | | | | | | | | | - Uses CMAKE_CXX_STANDARD instead of setting -std flag manually. - Fixes #2375
* | use sha1sum in anonymize_posts::operator()dbear4962024-09-162-15/+3
| |
* | promote compatability with Boost <1.86.0dbear4962024-09-162-18/+28
| |
* | update to Boost 1.86.0dbear4962024-09-162-8/+8
| | | | | | | | fixes #2378
* | chore(deps): bump cachix/install-nix-action from V27 to 28dependabot[bot]2024-09-121-1/+1
|/ | | | | | | | | | | | | Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V27 to 28. This release includes the previously tagged commit. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/V27...V28) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
* Avoid string in amount_t::in_place_truncateMax Nikulin2024-08-151-26/+1
| | | | | Do not serialize to string just to get rounded value. `in_place_roundto` should be reliable enough now.
* add unittest for #ledger/2348Tavis Ormandy2024-08-081-0/+16
|
* disable checking for generated transactionsTavis Ormandy2024-08-081-0/+3
| | | | | | | | | There is no parse_context_stack for generated transactions, because they were not parsed from anywhere. This breaks strict checking, because errors can't be reported. It doesn't make sense to report errors for these anyway, so lets just disable them.
* fix use-after-free with regex_match()Tavis Ormandy2024-08-081-4/+4
| | | | | | The smatch does not copy the input, it points to the original. So if the string is on the stack and goes out of scope because it's only used as a parameter, it will just be junk. Make a copy of it at a higher scope.
* Add doc for account, display_account and account_base variablesmatclab2024-08-071-0/+21
|
* More unit tests for amount_t::roundtoMax Nikulin2024-08-072-3/+15
| | | | | - Add some tests from comments to pull request #2361. - Fix decimal separator in earlier added tests.
* Add Python bindings for roundtoMax Nikulin2024-08-073-0/+10
| | | | | | | | | Expose `roundto` and `in_place_roundto` to `Amount`, `Balance`, and `Value` Python classes. They may be handy for debugging. The methods were added after introducing of bindings and likely it is a reason why they were missed. Closes: #2365
* Revert "also copy costs that round to zero"dbear4962024-08-061-1/+1
| | | | | | This reverts commit e2f64be216506b51c029147982f1addc50f4c745. post->cost is actually of type optional, so the cast to bool iscorrect.
* also copy costs that round to zerodbear4962024-08-061-1/+1
|
* copy cost from automatic transaction postingdbear4962024-08-061-0/+2
| | | | fixes #2268
* add regress test for #2268dbear4962024-08-061-0/+13
|
* Avoid ctype abuse.Taylor R Campbell2024-08-0613-47/+76
| | | | | fix https://github.com/ledger/ledger/issues/2338 fix https://github.com/ledger/ledger/issues/2340
* Add new --align-intervals option.Ian20202024-08-0610-19/+347
|
* Fix copy on write for amount_t::in_place_roundtoMax Nikulin2024-08-064-28/+10
| | | | | | | | | | | | - Copy amount quantity before rounding. - Fix `amount_t::roundto(int)`. - Transform `balance/testRound` into `balance/testRoundto`. It was a mix of `round` and `roundto` operation with unclear purpose and was relying on `in_place_roundto` behavior modifying all copies. There is no unit tests for balance `round` and `unround` any more. Closes #2362
* Another whitespace changeJohn Wiegley2024-08-051-1/+1
|
* Add whitespace to xact_t::hashJohn Wiegley2024-08-051-0/+8
|
* Rename SHA-512/256 to the more appropriate SHA-512HalfJohn Wiegley2024-08-055-7/+7
|
* Add two missing system headers to sha512.ccJohn Wiegley2024-08-051-0/+2
|
* Revert all changes to sha512.cJohn Wiegley2024-08-051-1/+1
|
* Change one prototypeJohn Wiegley2024-08-051-3/+1
|
* Remove most changes to sha512.ccJohn Wiegley2024-08-051-5/+11
|
* Include sys/types.hJohn Wiegley2024-08-051-0/+1
|
* Include stdint.h in sha512.ccJohn Wiegley2024-08-051-0/+1
|
* Fix return type of SHA512John Wiegley2024-08-051-1/+1
|
* Try something elseJohn Wiegley2024-08-051-7/+1
|
* Revert a type changeJohn Wiegley2024-08-051-2/+2
|
* Type signature fixJohn Wiegley2024-08-051-1/+1
|
* Minor doc updateJohn Wiegley2024-08-051-1/+1
|
* Update src/sha512.ccJohn Wiegley2024-08-051-1/+1
| | | Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
* Update src/sha512.ccJohn Wiegley2024-08-051-1/+1
| | | Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
* Update doc/ledger.1John Wiegley2024-08-051-1/+1
| | | Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
* Update doc/ledger.1John Wiegley2024-08-051-1/+1
| | | Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
* Add support for --hashes=sha512_256 as another algorithmJohn Wiegley2024-08-0514-28/+81
|
* Add further documentation on the --hashes optionJohn Wiegley2024-08-051-13/+40
|
* Improvements to the hashing testsJohn Wiegley2024-08-053-4/+36
|