From: Jordan J. <jlj...@gm...> - 2014-06-27 22:08:22
|
On Fri, Jun 27, 2014 at 1:54 PM, Andrew Fish <af...@ap...> wrote: > I though I would share some useful git aliases with folks. > > Have you ever wondered how many instances (different implementations) of a > library class there are? Or what is the value of a GUID Cname? Or what > GUID’ed name space a PCD lives under, and what is the default value for the > PCD? > > [alias] > grep-guid = "!f() { cd ${GIT_PREFIX:-.} && git grep $1 -- *.dec; }; f" > grep-pcd = "!f() { cd ${GIT_PREFIX:-.} && git grep $1 -- *.dec; }; f" > grep-library-include = "!f() { cd ${GIT_PREFIX:-.} && git grep $1 -- *.dec; > }; f" > grep-library-class = "!f() { cd ${GIT_PREFIX:-.} && git grep > LIBRARY_CLASS.*"$1" -- *.inf; }; f" Nice. I think we need to find a way to document these in the tree. Maybe BaseTools/README.git? (Maybe after the BaseTools merge?) Laszlo also had a few useful tips in the past. For example, to help diff .uni files: [diff "uni"] textconv = iconv -f UCS-2 -t UTF-8 binary = true Plus .git/info/attributes: *.uni diff=uni *.UNI diff=uni These are generic (not EDK II specific), but probably my favorite ~/.gitconfig changes: [alias] log1 = log --oneline logg = log --oneline --graph [log] decorate = short 'git log1' would be more valuable if people consistently followed: http://tianocore.sourceforge.net/wiki/Code_Style/Commit_Message -Jordan > (master)>git grep-guid gEfiBlockIoProtocolGuid > MdePkg/MdePkg.dec:1111: gEfiBlockIoProtocolGuid = { 0x964E5B21, > 0x6459, 0x11D2, { 0x8E, 0x39, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B }} > (master)>git grep-pcd PcdMaximumGuidedExtractHandler > MdePkg/MdePkg.dec:1543: # The required memory space is decided by the > value of PcdMaximumGuidedExtractHandler. > MdePkg/MdePkg.dec:1555: > gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10|UINT32|0x00000025 > (master)>git grep-library-include BaseMemoryLib > MdePkg/MdePkg.dec:177: BaseMemoryLib|Include/Library/BaseMemoryLib.h > (master)>git grep-library-class BaseMemoryLib > ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf:28: LIBRARY_CLASS > = BaseMemoryLib > ArmPkg/Library/BaseMemoryLibVstm/BaseMemoryLibVstm.inf:35: LIBRARY_CLASS > = BaseMemoryLib > MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf:24: LIBRARY_CLASS > = BaseMemoryLib > MdePkg/Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf:25: LIBRARY_CLASS > = BaseMemoryLib > MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf:25: > LIBRARY_CLASS = BaseMemoryLib > MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf:25: > LIBRARY_CLASS = BaseMemoryLib > MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf:25: > LIBRARY_CLASS = BaseMemoryLib > MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf:25: LIBRARY_CLASS > = BaseMemoryLib > MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf:25: LIBRARY_CLASS > = BaseMemoryLib|PEIM > MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf:25: LIBRARY_CLASS > = BaseMemoryLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER > UEFI_APPLICATION UEFI_DRIVER > > > Thanks, > > Andrew Fish > > PS The “cd ${GIT_PREFIX:-.}” is need for the commands run from the current > working directory. If you always want to search the entire project you can > remove these. > > PPS Not sure if you have to modify the commands for Windows? > > Contributed-under: TianoCore Contribution Agreement 1.0 > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > edk2-buildtools-devel mailing list > edk...@li... > https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel > |