git-timesync icon indicating copy to clipboard operation
git-timesync copied to clipboard

General improvements

Open dmotte opened this issue 4 years ago • 10 comments

In short, I have made the following changes:

  • improved README and structure
  • added useful --help message to the command
  • improved readability and usability in general
  • removed OS strict check, because this script may also work on other OSes. For example i tested it on Windows with Git Bash and it works

dmotte avatar Mar 21 '21 13:03 dmotte

This also resolves #5

dmotte avatar Mar 21 '21 13:03 dmotte

Hello, Thanks for the work done. I will look at your changes.

tst2005 avatar Mar 22 '21 12:03 tst2005

@dmotte on Windows with Git Bash, is the uname command exist ? what is the value return by this uname command ?

tst2005 avatar Mar 22 '21 12:03 tst2005

@tst2005 this is the output of both uname and uname -a. As you can see, it's not really useful 😅

Motte@dmottepc MINGW64 ~
$ uname
MINGW64_NT-10.0-17763

Motte@dmottepc MINGW64 ~
$ uname -a
MINGW64_NT-10.0-17763 dmottepc 3.1.7-340.x86_64 2020-10-23 13:08 UTC x86_64 Msys

dmotte avatar Mar 22 '21 13:03 dmotte

@tst2005 this is the output of both uname and uname -a. As you can see, it's not really useful sweat_smile

Motte@dmottepc MINGW64 ~
$ uname
MINGW64_NT-10.0-17763

Motte@dmottepc MINGW64 ~
$ uname -a
MINGW64_NT-10.0-17763 dmottepc 3.1.7-340.x86_64 2020-10-23 13:08 UTC x86_64 Msys

Despite of you tell, It is usefull. I see Windows with Git Bash use the well known mingw-w64 to compile their stuff. Then I added a MINGW64* support.

tst2005 avatar Mar 22 '21 14:03 tst2005

I will continue soon to update the README about Installation. It need to be improved but i'm not sure to follow what you wrote.

I will keep the verbose option (that you had dropped). I will keep git-timesync into the bin/directory. For the rest, I think I apply changes close to your PR (drop --force, add help, etc.).

tst2005 avatar Mar 22 '21 14:03 tst2005

Thanks for your time. Yeah i know the thing about MINGW64, but i would prefer if there is no check at all and the script assumes to work on all OSes where Bash works... but that's subjective. Anyway, if you really want to perform that check, i advise you to check for MINGW* instead, so the script will work even on MINGW32 (32-bit) systems.

dmotte avatar Mar 22 '21 14:03 dmotte

I understand but it is new, I suppose there will be some differences. After some time, if there is no difference/issue, I will merge them with pleasure!

To be honest I didn't target Bash (even it is most used) but any POSIX shell. I'm trying to be able to run git-timesync on any unix.

I just realize, I included some part of your work outside of a PR, then it is added like I did it. Sorry for that.

tst2005 avatar Mar 22 '21 15:03 tst2005

No problem for that. It's your project so feel free to do what you want :wink:

dmotte avatar Mar 22 '21 15:03 dmotte

Hello @dmotte Your README changes seems nice, I will include them ASAP. I re-opened your issue about WSL support, I need something to detect properly the WSL case.

tst2005 avatar Apr 21 '22 14:04 tst2005