Git integration with TC

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
viertaxa
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-28, 14:20 UTC

Git integration with TC

Post by *viertaxa »

Git integration would be a great feature to integrate into TC. Badges indicating the status of the file (modified, staged, unstaged, etc) and a status indicator of for the repo as a whole (branch, number of commits ahead/behind) are a few things that come to mind immediately. I also think it would be good to have some defined macros, like stage highlighted files and folders.

Thanks!
viertaxa
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-28, 14:20 UTC

Post by *viertaxa »

Additionally, there are a lot of open source tools and libraries around Git, so implementation might be made a bit easier!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I use TortoiseGit for that, and enable overlay icons in TC so I can see statuses for files/folders/repos. And it is controlled via context menu so it is nicely integrated with TC.
viertaxa
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-28, 14:20 UTC

Post by *viertaxa »

I'm aware of Tortise Git, but it interacts with Git in some "interesting" ways. Too much magic IMO. Especially when it comes to submodules and merges.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I don't understand which magic do you mean because all is fine for me, I'm using it for years...
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2viertaxa
There is a content plugin for TC to show some GIT information, maybe it can do something of what you requested. The plugin discussion topic:
http://ghisler.ch/board/viewtopic.php?t=42074
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
sweetsour
Junior Member
Junior Member
Posts: 18
Joined: 2007-10-04, 18:06 UTC

Post by *sweetsour »

Would be nice! +1
d
Member
Member
Posts: 157
Joined: 2007-02-05, 14:54 UTC

Re: Git integration with TC

Post by *d »

i made backup of documents to a my client, with simple file copying. then, they need to make many movements, file renamings. then in the next backing up, tc's synchronise dirs is going to show all the moved/renamed files and directories as different. that is a big problem on syncing/backing up. if git was connected to that entire place (in this case, it is local disk d with documents, pictures etc moved here from c), and all renamings and movements were made with git, then probably that can be efficiently synced with backup disk. but, to say the truth, the client used to use windows explorer, so if even windows explorer was integrated to git, it would be ok.
d
Member
Member
Posts: 157
Joined: 2007-02-05, 14:54 UTC

Re: Git integration with TC

Post by *d »

btw, i have just checked, cannot be the problem solved with rsync, i googled for "rsync moved files" and the answer in separate block in top is https://unix.stackexchange.com/questions/43957/using-rsync-to-move-not-copy-files-between-directories where i see that rsync does not solve this problem.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Git integration with TC

Post by *ghisler(Author) »

I don't think that you can combine git and sync.
Author of Total Commander
https://www.ghisler.com
d
Member
Member
Posts: 157
Joined: 2007-02-05, 14:54 UTC

Re: Git integration with TC

Post by *d »

ghisler(Author) wrote: 2021-05-30, 08:14 UTC I don't think that you can combine git and sync.
i thought this way: original local disk d is a git repo, and it has copy on backup disk, together with .git folder. i have heard that git is a distributed system, any local copy (at programmer's machines) has all versions of files as on git server. so, local disk d can be put into local git server, and all new renamings and moves can be downloaded into backup disk with git pull.
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Git integration with TC

Post by *umbra »

You do not want to use Git for that:
  1. It's not really built for binary files.
  2. You would have the files twice - once in normal locations and once in the .git folder.
  3. You would need a file system driver monitoring each filesystem call and issuing commits for each change. That would be a huge performance hit and potentially security issue.
You might have more luck with NTFS Journaling. Someone already tried it: https://ejrh.wordpress.com/2012/07/06/using-the-ntfs-journal-for-backups/, https://github.com/ejrh/backup, but I have no idea if it actually works.
Windows 7 Pro x64, Windows 10 Pro x64
valexiev
Junior Member
Junior Member
Posts: 28
Joined: 2008-03-31, 09:59 UTC

Re: Git integration with TC

Post by *valexiev »

Is there a way to do "git mv" while using the niceties of TC's rename, move, and multi-rename?
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: Git integration with TC

Post by *umbra »

valexiev wrote: 2022-01-05, 13:05 UTC Is there a way to do "git mv" while using the niceties of TC's rename, move, and multi-rename?
I don't see how. Though, I'm not sure what you are trying to achieve. There is no special rename/move/... operation in git. "git mv" is just normal rename/move operation that you do with Explorer/TC/..., that additionally:
  1. ignores ".gitignore" configuration
  2. automatically adds the changes to the staging
The first feature should be rarely used (I only needed it twice so far) and the second thing you need to do anyway for files with only changed content.
Windows 7 Pro x64, Windows 10 Pro x64
Post Reply