)]}'
{
  "commit": "d4559f53faf6cdcca95046f0dfbb1d5dd29b8d22",
  "tree": "e29005a45ebeab5a4222f4dbf82c3bb91729bfd1",
  "parents": [
    "7f1f1229e118d088d967bd38d3f53dfb698c4de1"
  ],
  "author": {
    "name": "Jakub Rzeszutko",
    "email": "jakub.rzeszutko@nordicsemi.no",
    "time": "Thu Jul 01 11:00:15 2021 +0200"
  },
  "committer": {
    "name": "Carles Cufí",
    "email": "carles.cufi@nordicsemi.no",
    "time": "Thu Jan 06 21:26:59 2022 +0100"
  },
  "message": "lib: getopt: rework and extend getopt library\n\nGetopt has been rework in this way that calling it does not require\nextra state parameter and its execution is thread safe.\nGlobal parameters describing the state of the getopt function have been\nmade available to ensure full API compatibility in using this library.\nHowever, referencing these global variables directly is not thread\nsafe. In order to get the state of the getopt function for the thread\nthat is currently using it, call: getopt_state_get();\n\nExtended the library with getopt_long and getopt_long_only functions.\n\nMoved getopt libary from utils to posix.\n\nSigned-off-by: Jakub Rzeszutko \u003cjakub.rzeszutko@nordicsemi.no\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dcc2c41104b7d56615b8d92f16f4b8211a1da89a",
      "old_mode": 33188,
      "old_path": "include/shell/shell.h",
      "new_id": "4246be149d62087cd7e27ef7290ccabb0817f690",
      "new_mode": 33188,
      "new_path": "include/shell/shell.h"
    },
    {
      "type": "delete",
      "old_id": "789aa11c18bfacb8999aa1fb80462b89db00348c",
      "old_mode": 33188,
      "old_path": "include/shell/shell_getopt.h",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "169ddb2cf10ed029ff627961987c7d97b688c76b",
      "old_mode": 33188,
      "old_path": "lib/posix/CMakeLists.txt",
      "new_id": "73f1613ec47ba56cda3a66a4dce144b525ccc0db",
      "new_mode": 33188,
      "new_path": "lib/posix/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "b1a0d52995b1d2ba42e6b3ba8b9d9d4dca7a2edc",
      "old_mode": 33188,
      "old_path": "lib/posix/Kconfig",
      "new_id": "4d09716a6b8f86f511217d6b1a2138c136dfb994",
      "new_mode": 33188,
      "new_path": "lib/posix/Kconfig"
    },
    {
      "type": "rename",
      "old_id": "9c400610d8da584099776d6b952bccfa7d556906",
      "old_mode": 33188,
      "old_path": "lib/util/getopt/CMakeLists.txt",
      "new_id": "642e3b9949b5a69b98c69817dfd0db4aa34d330e",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/CMakeLists.txt",
      "score": 70
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1b759648782604d25e03ce6bc6aee7cc83c40e09",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/Kconfig"
    },
    {
      "type": "rename",
      "old_id": "e0742b9554e5035ab2ca4daf082514d27651423f",
      "old_mode": 33188,
      "old_path": "lib/util/getopt/README",
      "new_id": "e0742b9554e5035ab2ca4daf082514d27651423f",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/README",
      "score": 100
    },
    {
      "type": "rename",
      "old_id": "7ab963a1bfa2bf087d25dc04a6e87d8c7c660642",
      "old_mode": 33188,
      "old_path": "lib/util/getopt/getopt.c",
      "new_id": "cec7c37755d6ec7bbbccf8fbdc48b7bf7062e291",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/getopt.c",
      "score": 82
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "565e096586ff0af894466af7574cbb8048cf6163",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/getopt.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "dd90890beb75553de42e68ab52f15764f724efaa",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/getopt_common.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b0ec82bf9212e0e2462e605ee2407d2c9de01eed",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/getopt_common.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "67a126715bc5490308b2b889516246ea4c3fe904",
      "new_mode": 33188,
      "new_path": "lib/posix/getopt/getopt_long.c"
    },
    {
      "type": "modify",
      "old_id": "8ceb6001b9ba478ffedce21ee36fa3817dc5475e",
      "old_mode": 33188,
      "old_path": "lib/util/CMakeLists.txt",
      "new_id": "f4a2b08db17c2cadcd71614d66e1f6b845cdf2ff",
      "new_mode": 33188,
      "new_path": "lib/util/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "70bf491cdee06f67296c8e034c1dd7c613386585",
      "old_mode": 33188,
      "old_path": "lib/util/Kconfig",
      "new_id": "0907cbba4aee2675b7f9064ad3e0a510a2455d06",
      "new_mode": 33188,
      "new_path": "lib/util/Kconfig"
    },
    {
      "type": "delete",
      "old_id": "0f60b8a64129a94f007b2655cd87b5e2fd52aa5b",
      "old_mode": 33188,
      "old_path": "lib/util/getopt/Kconfig",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "c1fb22ab3bdbb6ff3ab920faac1154ff9231fa6c",
      "old_mode": 33188,
      "old_path": "lib/util/getopt/getopt.h",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "4861364bda5c6095446cce00cf4e949a20b11970",
      "old_mode": 33188,
      "old_path": "samples/subsys/shell/shell_module/sample.yaml",
      "new_id": "2fb6dcdb7cb6da25763348efc3cc5e6d407e4ede",
      "new_mode": 33188,
      "new_path": "samples/subsys/shell/shell_module/sample.yaml"
    },
    {
      "type": "modify",
      "old_id": "9306e45c8ea158f3ef3c81e2d58cb3d71f2b1227",
      "old_mode": 33188,
      "old_path": "samples/subsys/shell/shell_module/src/main.c",
      "new_id": "13bc7bb8c61eba3204c2d28c4f5bd66746e719d1",
      "new_mode": 33188,
      "new_path": "samples/subsys/shell/shell_module/src/main.c"
    },
    {
      "type": "modify",
      "old_id": "cd6e4c86e822be00612b6470b6f999a94e485308",
      "old_mode": 33188,
      "old_path": "subsys/shell/CMakeLists.txt",
      "new_id": "ac8c3b2186f34ab7315503b9a05ceb8e83f23dab",
      "new_mode": 33188,
      "new_path": "subsys/shell/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "2234192914fff1c115a382743c2f953a5c999e09",
      "old_mode": 33188,
      "old_path": "subsys/shell/Kconfig",
      "new_id": "9b631a63471d89cd58b0714d61c023dc5d81dd60",
      "new_mode": 33188,
      "new_path": "subsys/shell/Kconfig"
    },
    {
      "type": "modify",
      "old_id": "7ace47de3109635088ed53a740033c20828c42ae",
      "old_mode": 33188,
      "old_path": "subsys/shell/shell.c",
      "new_id": "0a03672161c4ab4ea6b2161df2adfadcc8b7f8cb",
      "new_mode": 33188,
      "new_path": "subsys/shell/shell.c"
    },
    {
      "type": "delete",
      "old_id": "9b1dea144635ecbd1b8c5eec498e45d4f67768eb",
      "old_mode": 33188,
      "old_path": "subsys/shell/shell_getopt.c",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    }
  ]
}
