diff --git a/.gitconfig b/.gitconfig index 6b71e92..634beaf 100644 --- a/.gitconfig +++ b/.gitconfig @@ -38,6 +38,7 @@ cleanbrshow = remote prune origin --dry-run contains = !sh -c 'git branch -a --contains $1' - wdiff = diff --word-diff=color --unified=1 + first = rev-list --max-parents=0 HEAD # or use log --reverse [branch] #New branch track remote #autoSetupMerge = always diff --git a/.vim/vimwiki/Serial and time.wiki b/.vim/vimwiki/Serial and time.wiki new file mode 100644 index 0000000..5b06bab --- /dev/null +++ b/.vim/vimwiki/Serial and time.wiki @@ -0,0 +1,2 @@ + ~/Sources/grabserial-1.9.3 + o390pix0053% ./grabserial -v -d /dev/ttyUSB1 -m "^U-Boot 2010.06-00003-g77be133-dirty" -t -e 30 diff --git a/.vim/vimwiki/cppcheck.wiki b/.vim/vimwiki/cppcheck.wiki new file mode 100644 index 0000000..a324aec --- /dev/null +++ b/.vim/vimwiki/cppcheck.wiki @@ -0,0 +1,8 @@ +== generate report == +find -name "*.c" -o -name "*.cpp" | grep -v lib | xargs cppcheck 2> repport + +* Error list cppcheck --errorlist | grep -v "severity=\"style\"" | sed "s/.*msg=\"\(.*\)\".*/\1/g" | sed '/^\s*$/d' | recode xml..ascii + +== more tools == +* git pre-commit https://github.com/danmar/cppcheck/blob/master/tools/git-pre-commit-cppcheck +* diff --git a/.vim/vimwiki/index.wiki b/.vim/vimwiki/index.wiki index 38377af..36736ab 100644 --- a/.vim/vimwiki/index.wiki +++ b/.vim/vimwiki/index.wiki @@ -4,6 +4,8 @@ = Dev = * [[Code Checker]] * [[GCC]] +* [[cppcheck]] +* [[Serial and time]] = Android = * [[AndroidCamera]] diff --git a/README.md b/README.md index 69724f6..71be6b5 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ This repo contains a set of tools and configuration files used for development. Especially for Android Rom development +gdb init came from : https://github.com/cyrus-and/gdb-dashboard ## Install tool First get git submodule: ``` @@ -81,3 +82,7 @@ Vim plugins are managed by vundle. So at first lunch you have to run in vim * unrar * unzip * xchat + +# dev tools +* cppcheck +* cppcheck git precommit https://github.com/danmar/cppcheck/blob/master/tools/git-pre-commit-cppcheck