summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* whitespace cleanupJohann Klähn2013-01-165-15/+15
|
* Merge pull request #122 from enderw88/Lisp-fixesJohn Wiegley2013-01-163-2/+16
|\ | | | | Fix ledger-add-entry
| * Merge remote-tracking branch 'upstream/next' into nextCraig Earls2013-01-142-2/+14
| |\
| * | Bug551 fixed, commodities and accounts now sortCraig Earls2013-01-073-2/+16
| | | | | | | | | | | | | | | | | | Added two compare structs for std::map to use. I tried to override the < operator got a clean compile but map wasn't picking it up, I couldn't figure out why so I took the less elegant route.
* | | fix bug 748: option aliases not recognizedJohann Klähn2013-01-151-4/+11
| | |
* | | fix bug 788: behaviour of source_context for '-f -'Johann Klähn2013-01-152-1/+2
| | | | | | | | | | | | | | | | | | `session_t::read_data` did not set context.pathname to `/dev/stdin` for the special case `-f -`. I chose to adjust `source_context` too as there is no sensible context if no file name is provided.
* | | remove superfluous 'break'Johann Klähn2013-01-151-1/+0
| | |
* | | fix for 'store absolute paths internally'Johann Klähn2013-01-151-1/+1
| |/ |/| | | | | | | `parent_path` was called on unprocessed path so neither `resolve_path` nor `filesystem::absolute` had any effect.
* | Improvement to account alias expansionJohn Wiegley2013-01-111-1/+12
| | | | | | | | | | | | | | Aliases are now expanded not only if they occur by themselves, but also if they occur as the beginning of a multi-part account. Given <alias Food=Expenses:Food> the account <Food:Tomatos> should now be expanded to <Expenses:Food:Tomatos>.
* | Guard against a possible NULLJohn Wiegley2013-01-111-1/+2
|/
* Merge branch 'next' of github.com:ledger/ledger into nextJohn Wiegley2012-11-261-2/+4
|\
| * Fix crash when accessing the transaction code via post.xact.code using pythonAlexis Hildebrandt2012-11-191-2/+4
| | | | | | | | | | | | | | | | | | | | ledger would abort with the following error message: TypeError: No Python class registered for C++ class boost::optional<std::string> The changes pass a CallPolicy to make_getter when adding the transaction code property for python, so that the correct to_python conversion is made. For details see: http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
* | Shorten debug commentJohn Wiegley2012-11-231-1/+1
| |
* | Properly handle metadata tags on auto-postingsJohn Wiegley2012-11-122-7/+22
| |
* | Account names in auto-xacts can be format stringsJohn Wiegley2012-11-121-0/+9
|/
* right-justify amount_expr text in print report where possibleChristophe Rhodes2012-11-061-6/+7
|
* fix comment in display_filter_posts::output_rounding(post_t)Christophe Rhodes2012-11-061-3/+5
| | | | | slightly more detail in the case of zero display_amount and --empty not specified.
* Guard against global_scope being NULLJohn Wiegley2012-10-311-1/+2
|
* Merge pull request #97 from enderw88/Bug726-727-draft-and-lisp-commandJohn Wiegley2012-10-311-2/+9
|\ | | | | Added "draft" and "lisp" command synonyms
| * Added missing break; statement in report.ccCraig Earls2012-10-261-0/+1
| |
| * Added "draft" and "lisp" command synonymsCraig Earls2012-10-261-2/+8
| |
* | Corrected a typoJohn Wiegley2012-10-311-2/+2
| |
* | Merge pull request #96 from enderw88/Bug634-floor-ceil-roundJohn Wiegley2012-10-267-3/+78
|\| | | | | Bug 634 and 488, Corrected behavior of floor, and added ceiling
| * Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-257-3/+78
| | | | | | | | This is only a partial fix for 634, since rounding is not fixed.
* | Merge pull request #95 from enderw88/Bug695-init-fileJohn Wiegley2012-10-255-5/+47
|\| | | | | Bug695 init file
| * Fixes Bug 695, ledger ignores --init-fileCraig Earls2012-10-253-4/+18
| | | | | | | | | | | | Handle --init-file as a special command option like the debug options. That wway we can have the argument captured before teh global scope is created.
| * Added filebase and filepath valuesCraig Earls2012-10-231-1/+21
| | | | | | | | | | | | 'filename' returns the complete path/filename of the file containg the current xact. This is inconvenient for some displays. filebase returns only the base name. For completeness added filepath as well.
| * Implemented Bug551 Automatic Transactions are cleared base on parentCraig Earls2012-10-231-0/+8
| |
* | fix bucket directive (bug 765)Johann Klähn2012-10-231-4/+4
|/ | | | | | | | This was caused by both 'A' and 'bucket' using default_account_directive. This function was still stripping the 'A' directive, so the first character of the account name used with 'bucket' was cut off. Maybe the code for the other directives should be changed accordingly for consistency (put line + 1 in call instead of function).
* fix account mapping in csv conversionJohann Klähn2012-10-181-1/+1
| | | | | | | By using payees_for_unknown_accounts instead of account_mappings in csv.cc ledger will have the same behaviour as in `ledger -f - print` in that it uses payee fields in account directives to rewrite the account.
* Fix compilation warning: ensure a destructor is properly defined to avoidHyrum Wright2012-08-142-0/+5
| | | | compiler confusion.
* Fix compilation warning: be sure we call the base class copy constructor.Hyrum Wright2012-08-141-1/+1
|
* Resolve account.date to latest post in the accountJohn Wiegley2012-08-091-1/+3
|
* Always store absolute paths internallyJohn Wiegley2012-08-022-9/+8
|
* Don't use __has_feature in utils.ccJohn Wiegley2012-08-021-4/+4
|
* Guard some function definitions for ASanJohn Wiegley2012-07-301-0/+8
|
* Fixed a subtle memory overwriteJohn Wiegley2012-06-271-8/+10
| | | | Fixes #608
* Also using Clang's PCH with my "cxx" compilerJohn Wiegley2012-05-271-1/+1
|
* Fixed a reference to HAVE_EDITJohn Wiegley2012-05-202-7/+6
|
* Removed an unnecessary #defineJohn Wiegley2012-05-201-1/+0
|
* Make profiling builds work with ClangJohn Wiegley2012-05-201-1/+0
|
* Guard against an incorrect use of assert()John Wiegley2012-05-201-1/+1
|
* Changed all ASSERTS_ON -> !NO_ASSERTSJohn Wiegley2012-05-203-8/+5
|
* A few more CMake-related fixesJohn Wiegley2012-05-202-5/+2
|
* Work around inclusion ordering bug with XpressiveJohn Wiegley2012-05-202-4/+3
|
* Work around collision between Format's put & GraphJohn Wiegley2012-05-207-222/+178
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-2061-242/+541
|
* Fixed a variable name shadowingJohn Wiegley2012-05-181-2/+2
|
* Added a "json" report commandJohn Wiegley2012-05-184-6/+27
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-1826-334/+228
|