)]}'
{
  "commit": "ba67aaf2d05d1aa3def2b6eb1dc1d39bdf25bb41",
  "tree": "15f27ac94caeb38f927abe430a7026f9c223bdbb",
  "parents": [
    "4e3aa87d13b339fa678cd3cb7f23664d3a48fb21"
  ],
  "author": {
    "name": "Ævar Arnfjörð Bjarmason",
    "email": "avarab@gmail.com",
    "time": "Sat May 14 13:47:42 2011 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sat May 14 20:29:05 2011 -0700"
  },
  "message": "git-sh-i18n--envsubst: our own envsubst(1) for eval_gettext()\n\nAdd a git-sh-i18n--envsubst program which is a stripped-down version\nof the GNU envsubst(1) program that comes with GNU gettext for use in\nthe eval_gettext() fallback.\n\nWe need a C helper program because implementing eval_gettext() purely\nin shell turned out to be unworkable. Digging through the Git mailing\nlist archives will reveal two shell implementations of eval_gettext\nthat are almost good enough, but fail on an edge case which is tested\nfor in the tests which are part of this patch.\n\nThese are the modifications I made to envsubst.c as I turned it into\nsh-i18n--envsubst.c:\n\n * Added our git-compat-util.h header for xrealloc() and friends.\n\n * Removed inclusion of gettext-specific headers.\n\n * Removed most of main() and replaced it with my own. The modified\n   version only does option parsing for --variables. That\u0027s all it\n   needs.\n\n * Modified error() invocations to use our error() instead of\n   error(3).\n\n * Replaced the gettext XNMALLOC(n, size) macro with just\n   xmalloc(n). Since XNMALLOC() only allocated char\u0027s.\n\n * Removed the string_list_destroy function. It\u0027s redundant (also in\n   the upstream code).\n\n * Replaced the use of stdbool.h (a C99 header) by doing the following\n   replacements on the code:\n\n    * s/bool/unsigned short int/g\n    * s/true/1/g\n    * s/false/0/g\n\nReported-by: Johannes Sixt \u003cj.sixt@viscovery.net\u003e\nSigned-off-by: Ævar Arnfjörð Bjarmason \u003cavarab@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "711fce7e08beea95d1870047452131e3bf5278dd",
      "old_mode": 33188,
      "old_path": ".gitignore",
      "new_id": "1ccf79746ae0cadfe857c7f387e9a28f5d287f0c",
      "new_mode": 33188,
      "new_path": ".gitignore"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f5bbf7750db6f907d6f6d3b873154d7e098ef062",
      "new_mode": 33188,
      "new_path": "Documentation/git-sh-i18n--envsubst.txt"
    },
    {
      "type": "modify",
      "old_id": "ef57c1c9b40de62d58d192f1f65f65e9e9f19dd8",
      "old_mode": 33188,
      "old_path": "Makefile",
      "new_id": "87c83cb458e6e49c72250db8852c472d3ea73dca",
      "new_mode": 33188,
      "new_path": "Makefile"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "71250930dba09fbc6b1b638230cfa30253915a26",
      "new_mode": 33188,
      "new_path": "sh-i18n--envsubst.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "54d98b9b109441025b9b61c2964e29895eb360b7",
      "new_mode": 33261,
      "new_path": "t/t0201-gettext-fallbacks.sh"
    }
  ]
}
