I’ve put up a new release of the slightly renamed YummyYummySourceControl script here: yyhelp (0.5).
The script still depends on cogito(7) for the implementation of yycommit, but other such dependencies have been removed at this point so it’ll eventually depend on Git(7) only. Following is a sum up of the changes between the last version and v0.5:
Here’s the synopsis of the new command set: Overview of Changes in YummyYummySourceControl-0.5:
* Help improvements.
* Support auto-push after commits.
* Improved installation support: --install-aliases & --uninstall-aliases.
* Automagically support less as pager.
* Buglet fixes in yydiff.
* Provided native implementation of yystatus with extra options.
* New command yyinfo to list repository information.
* New command yyblame with colorization support.
* Allow tagging of specific revisions.
SYNOPSIS
yyadd [FILES...] - add files to git repository
yyblame [FILES...] - annotate file source code
yybranch [-f] <branch> - add branch (forcable)
yybranchdel [-f] <branch> - delete branch (forcable)
yyChangeLog - show git log in ChangeLog style
yycommit [FILES...] - commit current working tree
yydiff [FILES...] - show committable differences in
working tree
yygc - repack and prune repository
yyhelp - display yy* help information
yyinfo - display repository information
yylsbranches - list branches
yylstags - list tags
yypull - pull upstream sources
yypushpull - push & pull upstream sources
yyremove [FILES...] - remove files from git repository
yyreset - reset (revert to HEAD) all files in the tree
yyrestore [FILES...] - forcefully re-checkout specific files
yystatus [-t|-u|-c] - display working tree status
-t: trim unknown; -u: show unknown;
-c: trim and use commit message style
yytag <tag> [revision] - add tag
yytagdel <tag> - delete tag
yyuncommit - undo the last commit (must be unpushed)
yyview - browse & navigate the history
yywarp <branch> - checkout new branch
- This blog is mostly about technical stuff related to my projects.My homepage has contacts and a project list.
-
Blogroll
-
Categories
-
Recent Posts
-
Recent Comments
-
Archives
- April 2009 (1)
- October 2008 (2)
- September 2008 (1)
- July 2008 (1)
- June 2008 (3)
- May 2008 (1)
- April 2008 (2)
- February 2008 (1)
- October 2007 (2)
- September 2007 (3)
- August 2007 (2)
- July 2007 (2)
- June 2007 (4)
- April 2007 (3)
- March 2007 (1)
- January 2007 (2)
- December 2006 (2)
- November 2006 (2)
- October 2006 (1)
- September 2006 (2)
- August 2006 (1)
- July 2006 (1)
- June 2006 (1)
- May 2006 (2)
- April 2006 (3)
- February 2006 (2)
- January 2006 (1)
- December 2005 (3)
- November 2005 (2)
- September 2005 (1)
- August 2005 (3)
- July 2005 (6)
- June 2005 (12)
One Comment
Here are some tips to improve your bash coding style:
- use “[[ ... ]]” instead of “test …”, “[[ ... && ... ]]” instead of “test … && test …”
- drop the match() function as ‘match $pattern “$searchtext”‘ is the same as ‘[[ "x$searchtext" = x$pattern ]]’
- do not abuse usage of ‘&&’ and ‘||’: an if/then/fi is longer, but often more readable
- use tput(1) instead of hard coding escape sequences
- discover ${0##*/}
- use here-docs : cat