public class GitGui extends java.lang.Object
FileList
which contains the time stamp of all files.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
sVersion
Version, history and license
2018-10-28 Hartmut new textfield for cmd, shows the last automatically cmd, enables assembled cmd for git and common cmd.
|
Constructor and Description |
---|
GitGui(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
doSomethinginMainthreadTillCloseWindow() |
void |
finalize() |
static java.io.File |
getFilePathRepository(java.io.File startFileSearchRepository)
Returns the opened repository or repoository linking file or searches the next .git or .gitRepository file
in the parent dir.
|
static void |
guiRepository(GitGuiPaths exepath,
JZtxtcmdFilepath repoFile)
Searches the git repository and the root of the working tree and opens the window for the git gui.
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
searchRepository(java.io.File startFile,
java.lang.String[] dst,
java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> dstMap,
java.lang.String nameRepository,
java.lang.String nameBasedir,
java.lang.String nameLocalFile)
Search the base dir and the repository for a given path/to/file.
|
static void |
showLog(java.io.File srcFile)
Searches the git repository and the root of the working tree and opens the window for the git gui.
|
void |
startLog(java.lang.String sGitDir,
java.lang.String sWorkingDir,
java.lang.String sLocalFile) |
public final java.lang.String sVersion
openNewFileSelector(String, RevisionEntry)
not ready yet.
diff --name-status instead diff --name-only
to build the input for the #wdgTableFiles to show different files. The table has an additional left row for the kind of difference
adequate the output of diff --name-status.
- 2018-10-10 Hartmut new
#guiRepository(JZtxtcmdFilepath)
as start operation. It checks whether "name.gitRepository" is given
and copies "name.gitignore" to ".gitignore" and uses "name.filelist" as filelist. It supports more as one component on one working dir.
- 2018-10-10 Hartmut new
getFilePathRepository(File)
. It is invoked in jzTc to get the opened repository by this GUI for add command.
- 2017-05-10 Hartmut bugfix
CmdExecuter.setCharsetForOutput(String)
to UTF-8 because git outputs cmd output in UTF-8
- 2016-12-02 Hartmut chg GitGui some improvements.
- 2016-09-23 Hartmut GitGui: ContextMenu in file table
- 2016-08-18 Hartmut this version is able to use to view the repository versions, the changed files per version, the changed file to the working tree.
It supports view diff with invocation of an external tool. It is the first productive version. But yet with some specific settings yet now.
TODO: read a config. Document it. Show the git command line for any action.
- 2016-08-24 Hartmut created
public GitGui(java.lang.String[] args)
public void doSomethinginMainthreadTillCloseWindow()
public void finalize()
finalize
in class java.lang.Object
public static java.io.File getFilePathRepository(java.io.File startFileSearchRepository)
dir
- The dir where a file should be handled.public static void guiRepository(GitGuiPaths exepath, JZtxtcmdFilepath repoFile)
srcFile
- Any file to start searching the root of the working tree and the git repository inside this tree.
If it is a directory and that directory contains either ".git" or ".gitRepository", it is the root of the working tree.
Elsewhere the root will be searched backward to the root of the file system.
It means you can start this routine with any srcFile inside the working tree.
This file will be used as additional argument for example to show the history of that file.public static void main(java.lang.String[] args)
public static java.lang.String searchRepository(java.io.File startFile, java.lang.String[] dst, java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> dstMap, java.lang.String nameRepository, java.lang.String nameBasedir, java.lang.String nameLocalFile)
startFile
- Any file path. Especially a ".git" directory or ".gitRepository*" file. In that case the local file path will be set to null,
because the whole repository is given.
A ".gitRepository*" file contains the path to the extern .git directory.dst
- maybe null, elsewhere new String[2].
dst[0] will be filled with the absolute path of the .git directory.
dst[1] will be filled with the absolute path to the basic directory for the working tree where .git or .gitRepository were found.
dst[2] will be filled with the local file path or null if the .git or .gitRepositiory is the startFile.dstMap
- maybe null, if not null it is a container maybe from JZcmd variables or an empty Map.nameRepository
- if dstMap !=null, the name of the key (variable) for the repository path.nameBasedir
- if dstMap !=null, the name of the key (variable) for the base directory.nameLocalFile
- if dstMap !=null, the name of the key (variable) for the local file.
That variables will be set. nameLocalFile will be set to null if .git or .gitRepository is the startFile.public static void showLog(java.io.File srcFile)
srcFile
- Any file to start searching the root of the working tree and the git repository inside this tree.
If it is a directory and that directory contains either ".git" or ".gitRepository", it is the root of the working tree.
Elsewhere the root will be searched backward to the root of the file system.
It means you can start this routine with any srcFile inside the working tree.
This file will be used as additional argument for example to show the history of that file.public void startLog(java.lang.String sGitDir, java.lang.String sWorkingDir, java.lang.String sLocalFile)