)]}'
{
  "commit": "a000b7950da938d2df37ec5e081cd0680e6e4bbe",
  "tree": "d0afd3566d3ca74118d8d06d52625d9ae66b4378",
  "parents": [
    "1fade70203668a62c4024246c23450817f5753be"
  ],
  "author": {
    "name": "Kim Phillips",
    "email": "kim.phillips@freescale.com",
    "time": "Tue Apr 05 07:15:14 2011 +0000"
  },
  "committer": {
    "name": "Wolfgang Denk",
    "email": "wd@denx.de",
    "time": "Thu Apr 28 01:00:07 2011 +0200"
  },
  "message": "common: add a grepenv command\n\nu-boot environments, esp. when boards are shared across multiple\nusers, can get pretty large and time consuming to visually parse.\nThe grepenv command this patch adds can be used in lieu of printenv\nto facilitate searching.  grepenv works like printenv but limits\nits output only to environment strings (variable name and value\npairs) that match the user specified substring.\n\nthe following examples are on a board with a 5313 byte environment\nthat spans multiple screen pages:\n\nExample 1:  summarize ethernet configuration:\n\n\u003d\u003e grepenv eth TSEC\netact\u003dFM1@DTSEC2\neth\u003dFM1@DTSEC4\nethact\u003dFM1@DTSEC2\neth1addr\u003d00:E0:0C:00:8b:01\neth2addr\u003d00:E0:0C:00:8b:02\neth3addr\u003d00:E0:0C:00:8b:03\neth4addr\u003d00:E0:0C:00:8b:04\neth5addr\u003d00:E0:0C:00:8b:05\neth6addr\u003d00:E0:0C:00:8b:06\neth7addr\u003d00:E0:0C:00:8b:07\neth8addr\u003d00:E0:0C:00:8b:08\neth9addr\u003d00:E0:0C:00:8b:09\nethaddr\u003d00:E0:0C:00:8b:00\nnetdev\u003deth0\nuprcw\u003dsetenv ethact $eth;setenv filename p4080ds/R_PPSXX_0xe/rcw_0xe_2sgmii_rev2_high.bin;setenv start 0xe8000000;protect off all;run upimage;protect on all\nupuboot\u003dsetenv ethact $eth;setenv filename u-boot.bin;setenv start eff80000;protect off all;run upimage;protect on all\nupucode\u003dsetenv ethact $eth;setenv filename fsl_fman_ucode_P4080_101_6.bin;setenv start 0xef000000;protect off all;run upimage;protect on all\nusdboot\u003dsetenv ethact $eth;tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/initramfs.cpio.gz.uboot;tftp c00000 $dir/p4080ds-usdpaa.dtb;setenv bootargs root\u003d/dev/ram rw console\u003dttyS0,115200 $othbootargs;bootm 1000000 2000000 c00000;\n\u003d\u003e\n\nExample 2: detect unused env vars:\n\n\u003d\u003e grepenv etact\netact\u003dFM1@DTSEC2\n\u003d\u003e\n\nExample 3: reveal hardcoded variables; e.g., for fdtaddr:\n\n\u003d\u003e grepenv fdtaddr\nfdtaddr\u003dc00000\nnfsboot\u003dsetenv bootargs root\u003d/dev/nfs rw nfsroot\u003d$serverip:$rootpath ip\u003d$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console\u003d$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr\nramboot\u003dsetenv bootargs root\u003d/dev/ram rw console\u003d$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr\n\u003d\u003e grep $fdtaddr\nfdtaddr\u003dc00000\nmy_boot\u003dbootm 0x40000000 0x41000000 0x00c00000\nmy_dtb\u003dtftp 0x00c00000 $prefix/p4080ds.dtb\nnohvboot\u003dtftp 1000000 $dir/$bootfile;tftp 2000000 $dir/$ramdiskfile;tftp c00000 $dir/$fdtfile;setenv bootargs root\u003d/dev/ram rw ramdisk_size\u003d0x10000000 console\u003dttyS0,115200;bootm 1000000 2000000 c00000;\n\u003d\u003e\n\nThis patch also enables the grepenv command by default on\ncorenet_ds based boards (and repositions the DHCP command\nentry to keep the list sorted).\n\nSigned-off-by: Kim Phillips \u003ckim.phillips@freescale.com\u003e\nCc: Kumar Gala \u003ckumar.gala@freescale.com\u003e\nCc: Andy Fleming \u003cafleming@freescale.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0491b1109a265c77b6734176a1700628b53d77d2",
      "old_mode": 33188,
      "old_path": "README",
      "new_id": "157cc9e2b2cb185694a053703356427cf9d87aca",
      "new_mode": 33188,
      "new_path": "README"
    },
    {
      "type": "modify",
      "old_id": "df0e6dbafdaa63f70ebd17463e82c9f97e6a1446",
      "old_mode": 33188,
      "old_path": "common/cmd_nvedit.c",
      "new_id": "817f39b5d908cf5d7fa323f27591bf0d3034b403",
      "new_mode": 33188,
      "new_path": "common/cmd_nvedit.c"
    },
    {
      "type": "modify",
      "old_id": "4e2b3fb983d53ce35106bb9d1f993c33594f8174",
      "old_mode": 33188,
      "old_path": "include/configs/corenet_ds.h",
      "new_id": "bec8cd1ce15ed61e9f2a5d7ef0b52996f71d30e6",
      "new_mode": 33188,
      "new_path": "include/configs/corenet_ds.h"
    },
    {
      "type": "modify",
      "old_id": "a7c129377092c260e78006ffc495ca5f54a21879",
      "old_mode": 33188,
      "old_path": "include/search.h",
      "new_id": "c827d4dbee946f3ffa39a2499a4b2da9dcbf350c",
      "new_mode": 33188,
      "new_path": "include/search.h"
    },
    {
      "type": "modify",
      "old_id": "92eaa3881ca2e46a2743f59c5714695580b24b58",
      "old_mode": 33188,
      "old_path": "lib/hashtable.c",
      "new_id": "19d5b158eeff52bf74606d17e391901ddeb226d3",
      "new_mode": 33188,
      "new_path": "lib/hashtable.c"
    }
  ]
}
