Preview implementation of "smart" context menu
commit47d1b05b28b5ac9c3b15a916d6bfd19c5e50ab5b
authorKirill <kirillathome@gmail.com>
Sat, 9 Feb 2008 15:29:05 +0000 (9 10:29 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 9 Feb 2008 17:05:51 +0000 (9 17:05 +0000)
tree3cc40d0b1dd900a4de604c283bec1804e88525af
parent724390b4e92b1b48bf93e58010775cb70d30acb5
Preview implementation of "smart" context menu

As Johannes Schindelin suggested, it verifies that the selected item is
a valid Git repository and add different menu items accordingly.
This version puts the basic infrastructure in place, and does not
necessarily provide a full-grown menu structure yet. It implements the
suggestion in a way that the text of the item is context-sensitive, but
the action is always the same.

TODO: think about making LONGEST_MENU_ITEM and MAX_PROCESSING_TIME
      dynamic/configurable.
TODO: decide on a structure and actions of added menu items.
exec.c
exec.h
ext.c
menu.c