Plugin - Git Commander - Git and total commander!
Moderators: Hacker, petermad, Stefan2, white
Re: Plugin - Git Commander - Git and total commander!
I will see what I can do. At least there is git_submodule_branch, which might be of use here.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Re: Plugin - Git Commander - Git and total commander!
It would be great. Thanks!
Re: Plugin - Git Commander - Git and total commander!
Do you have set the branch In your .gitmodules file?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Re: Plugin - Git Commander - Git and total commander!
Yes, but it shows wrong branch name
Re: Plugin - Git Commander - Git and total commander!
As far as I figured out libgit2 can only retrieve that branch name as specified in .gitmodules.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Re: Plugin - Git Commander - Git and total commander!
Correct branch name is in FETCH_HEAD file inside submodule folder.
Re: Plugin - Git Commander - Git and total commander!
Hm, I see. But I have no idea how to access this information. Any libgit2 expert reading?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Re: Plugin - Git Commander - Git and total commander!
Do you have read access from plugin code to the file?
Re: Plugin - Git Commander - Git and total commander!
Sorry, but I found one bug.
Branch stay with old name until reload dir (entering and leaving folder inside - Dbl Enter). All other columns refresh by itself on TC window getting focus.
Branch stay with old name until reload dir (entering and leaving folder inside - Dbl Enter). All other columns refresh by itself on TC window getting focus.
Re: Plugin - Git Commander - Git and total commander!
Related to viewtopic.php?f=6&t=73788. Plugin does not get notified when directory content changes.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Re: Plugin - Git Commander - Git and total commander!
I've found an issue with how the tooltip suggestions were presented. They cause blank lines to show up on non-versioned files/dirs. To fix it, please refer to https://www.ghisler.ch/board/viewtopic.php?f=35&t=74816
Re: Plugin - Git Commander - Git and total commander!
hey, nice plugin!
I thought of creating a Custom column, and auto switch to it whenever the current dir contains a .git subdir (and all descendants), but I cannot get a rule to do that.
Does anyone here have done that? if not, how are people using this? you switch to a custom view manually every time?
thanks
I thought of creating a Custom column, and auto switch to it whenever the current dir contains a .git subdir (and all descendants), but I cannot get a rule to do that.
Does anyone here have done that? if not, how are people using this? you switch to a custom view manually every time?
thanks
Re: Plugin - Git Commander - Git and total commander!
I don't think it is possible to set a rule based on subdir names, only on file names. The content of the Directory field is alway only compared with the current dir (+ path if stated), but not with subdirs, and if you try to put a directory (as dirname\ ) in the File types field, then TC automatically moves it to the Directory field on saving the rule.I thought of creating a Custom column, and auto switch to it whenever the current dir contains a .git subdir (and all descendants), but I cannot get a rule to do that.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Plugin - Git Commander - Git and total commander!
Checking for .gitignore .gitattributes might do the trick in many cases and they are easy to add to folders that don't have them yet.
Edit: see few posts further, a "better" solution might be to use the "path"
Edit: see few posts further, a "better" solution might be to use the "path"
Last edited by hi5 on 2021-06-27, 07:49 UTC, edited 1 time in total.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: Plugin - Git Commander - Git and total commander!
that would work, but now that I think of it, only for the git top level folder. So there is no good way to say:
"any folder that is under a folder containing a .git dir or a .gitignore file" correct?
that is a real pity, not sure I want to keep changing the view by hand every time I am in a source dir...