| 2022-06-13 |
| → nate4 joined | 00:02 |
| → rszarka joined | 00:04 |
| ← Soni left | 00:04 |
| ← Murr left | 00:04 |
| → Murr joined | 00:04 |
| → user9d joined | 00:05 |
| ← junebug left | 00:05 |
| → GNUmoon joined | 00:06 |
| → hamburgler2 joined | 00:06 |
|
user9d
| how do I do a 'git clone https://github.com/black-brain/graBing` and have it automatically FAIL/exit-immediately because I need to "login" in order to clone it? | 00:06 |
|
ajak
| $ curl -I https://github.com/black-brain/graBing | 00:07 |
| ← robszarka left | 00:07 |
|
ajak
| HTTP/2 404 | 00:07 |
|
| github does that when you try to clone something that doesn't exist | 00:07 |
| ← nate4 left | 00:07 |
|
user9d
| oh. | 00:08 |
| ← hamburgler left | 00:08 |
|
user9d
| xD | 00:08 |
|
| I assumed it was a turned-private-from-public-repository xD | 00:12 |
| → junebug joined | 00:13 |
| → geosmile joined | 00:16 |
| ← littlebobeep left | 00:28 |
| → kaiseisei joined | 00:29 |
| → cixx joined | 00:34 |
| ← user9d left | 00:37 |
| ← cixx left | 00:38 |
| ← ferdna left | 00:39 |
| → ferdna joined | 00:40 |
| → littlebobeep joined | 00:40 |
| ← junebug left | 00:41 |
| → cixx joined | 00:50 |
| ← Lord_of_Life left | 00:50 |
| → Lord_of_Life joined | 00:52 |
| ← hamburgler2 left | 00:53 |
| ← cixx left | 00:55 |
| → nate4 joined | 01:00 |
| ← nate4 left | 01:05 |
| → jinsl joined | 01:06 |
| → cixx joined | 01:06 |
| ← Leonarbro left | 01:09 |
| ← littlebobeep left | 01:10 |
| ← cixx left | 01:11 |
| ← kaiseisei left | 01:14 |
| → littlebobeep joined | 01:15 |
| ← Visne left | 01:16 |
| → Visne joined | 01:16 |
| → kaiseisei joined | 01:16 |
| ← umbramalison left | 01:17 |
| ← hbautista left | 01:17 |
| → jjakob joined | 01:18 |
| → umbramalison joined | 01:18 |
| ← auk_ left | 01:20 |
| → Betal joined | 01:30 |
| ← dodobrain left | 01:37 |
| → dodobrain joined | 01:37 |
| → Leonarbro joined | 01:39 |
| → Soni joined | 01:43 |
| ← Yruama left | 01:44 |
| → xiongxin joined | 01:47 |
| → liberaider joined | 01:51 |
| ← thiago left | 01:56 |
| → thiago joined | 01:57 |
| ← pretty_dumm_guy left | 01:58 |
| ← EvilDMP left | 02:02 |
| ← lemonsnicks left | 02:03 |
| → rgrinberg joined | 02:04 |
| ← Murr left | 02:04 |
| → Murr joined | 02:04 |
| ← Leonarbro left | 02:05 |
| → justinf210 joined | 02:05 |
| ← justinf210 left | 02:05 |
| aidalgol_ → aidalgol | 02:07 |
| ← zulutango left | 02:11 |
| → _xor joined | 02:16 |
| ← structoha1 left | 02:17 |
| → zulutango joined | 02:18 |
| → Leonarbro joined | 02:19 |
| → lemonsnicks joined | 02:20 |
| ← Leonarbro left | 02:25 |
| ← FFY00 left | 02:32 |
| ← junktext left | 02:32 |
| → MiguelX413 joined | 02:33 |
| → junktext joined | 02:33 |
| ← pulse left | 02:33 |
| ← FinnElija left | 02:41 |
| → FinnElija joined | 02:41 |
| ← terrorjack left | 02:43 |
| → cixx joined | 02:43 |
| → terrorjack joined | 02:44 |
| ← xiongxin left | 02:51 |
| ← kaiseisei left | 02:54 |
| → kaiseisei joined | 02:54 |
| → nate4 joined | 02:56 |
| ← to1ne left | 03:05 |
| ← bin101 left | 03:14 |
| → gurkenglas joined | 03:17 |
| ← ChmEarl left | 03:18 |
| → bin101 joined | 03:18 |
| ← gast0n left | 03:26 |
| ← tyson2 left | 03:30 |
| → tusko joined | 03:31 |
|
tusko
| Supposed we have a branch develop that we want to merge into main. Is the proper way to do that `git checkout main && git merge develop`? | 03:32 |
|
| seems right to my eye | 03:33 |
| → SteveR joined | 03:35 |
| ← SteveR left | 03:35 |
| → SteveR44 joined | 03:35 |
|
SteveR44
| Hi there | 03:35 |
|
| instead of creating a local branch | 03:35 |
|
| i directly made changes to the local master | 03:35 |
|
| now i want to create the branch | 03:35 |
| ← Guest2 left | 03:35 |
|
SteveR44
| is there a way to move the changes that are in the local master to a new branch in local | 03:36 |
| ← rgrinberg left | 03:36 |
| ← dodobrain left | 03:37 |
| → dodobrain joined | 03:37 |
| → rgrinberg joined | 03:39 |
| ← Anu left | 03:42 |
| ← nate4 left | 03:43 |
| ← Maxattax97 left | 03:47 |
|
tusko
| https://stackoverflow.com/questions/44162174/git-move-staged-changes-to-different-or-new-branch | 03:48 |
| ← jimm left | 03:48 |
| → jimm joined | 03:48 |
| ← rgrinberg left | 03:54 |
| → justinf210 joined | 04:03 |
| ← justinf210 left | 04:07 |
| ← mandeep left | 04:07 |
| → nate4 joined | 04:07 |
| → kaiseisei1 joined | 04:10 |
| ← kaiseisei left | 04:10 |
| kaiseisei1 → kaiseisei | 04:10 |
| ← pmcnabb left | 04:10 |
| → vdamewood joined | 04:11 |
| ← bloody left | 04:11 |
| → xiongxin joined | 04:14 |
| ← ferdna left | 04:17 |
|
mackerman
| SteveR44: git switch --create <new-branch> master | 04:23 |
|
SteveR44
| i did a a git stash and then git stash branch <new-branch> stash@{0 | 04:24 |
|
mackerman
| stash may not be needed in simple cases of uncommited changes that do not conflict. | 04:24 |
|
| Also known as !float | 04:25 |
|
gitinfo
| If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout existing_branch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution. | 04:25 |
| ← xiongxin left | 04:27 |
| → xiongxin joined | 04:27 |
| ← nate4 left | 04:28 |
| ← littlebobeep left | 04:32 |
| → littlebobeep joined | 04:35 |
| ← geosmile left | 04:37 |
| ← Arsen left | 04:40 |
| ← SuperLag left | 04:41 |
| → stewie925 joined | 04:44 |
|
stewie925
| hey guys, how do we stash an untracked file that is "git add"ed ? | 04:44 |
|
| I want to stash it along with an updated file, not separate | 04:45 |
|
ikke
| stewie925: if it's staged, git stash should automatically include it | 04:47 |
|
stewie925
| ikke: thanks | 04:48 |
|
| let me try... | 04:48 |
|
| I am using the latest git version 2.35 | 04:48 |
| → Arsen joined | 04:48 |
|
ikke
| I just tested it | 04:49 |
|
stewie925
| ikke: fantastic! thank you! | 04:50 |
|
| I just tested it too (stash save AND stash apply) | 04:50 |
| → kaiseisei1 joined | 04:53 |
| ← kaiseisei left | 04:54 |
| kaiseisei1 → kaiseisei | 04:54 |
| ← stewie925 left | 04:58 |
| → nate4 joined | 04:58 |
| → srinidhi joined | 04:58 |
| ← txtsd left | 05:00 |
| → txtsd joined | 05:02 |
| → theoceaniscool joined | 05:02 |
| ← thiago left | 05:02 |
| ← nate4 left | 05:04 |
|
dba
| I have added .idea to .gitignore but everytime I commit the .idea folder git pushed to the remote repo. what could be the problem? | 05:05 |
| ← littlebobeep left | 05:05 |
| → dsrt^ joined | 05:09 |
|
strk
| dba: does `git ls-tree HEAD` # show you the .idea folder ? Adding it to .gitignore doesn't mean it's not in the repository already | 05:10 |
| → coot joined | 05:11 |
| → littlebobeep joined | 05:12 |
| ^vanessa^ → vanessa | 05:14 |
|
ikke
| dba: .gitigore does not prevent git from pushing changes to a folder | 05:15 |
|
| it only affects git status and git add | 05:15 |
| ← SteveR44 left | 05:16 |
| ← dsrt^ left | 05:34 |
| → madewokherd` joined | 05:36 |
| ← w0ng left | 05:37 |
| ← dodobrain left | 05:37 |
| → dodobrain joined | 05:37 |
| ← madewokherd left | 05:39 |
| ← littlebobeep left | 05:41 |
| ← xiongxin left | 05:42 |
| → magic_ninja joined | 05:45 |
| → w0ng joined | 05:45 |
| → nate4 joined | 05:48 |
| → littlebobeep joined | 05:48 |
| ← GNUmoon left | 05:49 |
| → dsrt^ joined | 05:50 |
| → GNUmoon joined | 05:51 |
| ← kaiseisei left | 05:52 |
| ← great_taste left | 05:52 |
| → kaiseisei joined | 05:52 |
| → derfflinger joined | 05:52 |
| ← derfflinger left | 05:54 |
|
dba
| ikke: how do I prevent it from getting pushed to the remote repo? | 05:54 |
| → derfflinger joined | 05:54 |
| ← konrados left | 05:54 |
|
dba
| I guess I figure out the issue when I do `git add .` it add the .idea folder, I think I should doo only `git add newfileadded` but sometime I add multiple file locally to the repo it is very inconvenient to add one by one | 05:55 |
|
| I was wondering if there is something I can do in the config or setting to prevent adding `.idea` when I do `git add .` | 05:56 |
| ← nate4 left | 05:58 |
| → structoha1 joined | 05:58 |
| → xiongxin joined | 05:58 |
| ← Murr left | 06:04 |
| → Murr joined | 06:04 |
| → acebrianjuan joined | 06:06 |
| ← sudoforge left | 06:07 |
| ← lord| left | 06:09 |
| → jinsl00000 joined | 06:10 |
| ← dsrt^ left | 06:10 |
|
cixx
| gi | 06:11 |
|
| hi | 06:11 |
|
| git log -3 -S'card' --stat -p | 06:12 |
|
| i am trying to search on last n commits | 06:12 |
|
| but it found from previous commits with this | 06:12 |
| ← jinsl left | 06:13 |
|
osse
| cixx: the -3 limits git log to show three commits. so it searches backwards until it has three commits | 06:13 |
|
| you can do git log -Scard --stat -p HEAD~3.. | 06:13 |
| → kaiseisei1 joined | 06:14 |
| ← kaiseisei left | 06:15 |
| kaiseisei1 → kaiseisei | 06:15 |
| → nate4 joined | 06:16 |
| → aliheym joined | 06:19 |
| → dionysus69 joined | 06:19 |
| ← aliheym left | 06:20 |
| → carl- joined | 06:22 |
| ← kaiseisei left | 06:23 |
| → konrados joined | 06:23 |
| → kaiseisei joined | 06:23 |
| → otisolsen70 joined | 06:24 |
|
cixx
| hmm | 06:28 |
|
| thank you osse | 06:28 |
| → szkl joined | 06:29 |
| → mexen joined | 06:30 |
| ← nate4 left | 06:32 |
| → kaiseisei1 joined | 06:33 |
| ← kaiseisei left | 06:34 |
| kaiseisei1 → kaiseisei | 06:34 |
| → saroy joined | 06:38 |
| ← dharrigan left | 06:42 |
| → dharrigan joined | 06:42 |
| → dsrt^ joined | 06:45 |
| ← littlebobeep left | 06:46 |
| ← xiongxin left | 06:46 |
| → littlebobeep joined | 06:48 |
| → nate4 joined | 06:49 |
| ← RiFo left | 06:50 |
| → palasso joined | 06:52 |
| ← jinsun left | 06:52 |
| ← toralf_ left | 06:58 |
| _val__ → _val_ | 06:58 |
| → toralf joined | 06:58 |
| → fxbrain joined | 07:00 |
| ← Celelibi left | 07:01 |
| ← nate4 left | 07:05 |
| → littlebo1eep joined | 07:06 |
| → Celelibi joined | 07:06 |
| ← littlebobeep left | 07:08 |
| ← unluckyshrubbery left | 07:09 |
| → Sulky__ joined | 07:10 |
| → feriman joined | 07:10 |
| → lord| joined | 07:12 |
| ← Sulky_ left | 07:12 |
| → xiongxin joined | 07:14 |
| → adlternative joined | 07:19 |
| → littlebobeep joined | 07:20 |
| → Leonarbro joined | 07:21 |
| → Masklin joined | 07:21 |
| ← littlebo1eep left | 07:24 |
| ← littlebobeep left | 07:25 |
| ← jimm left | 07:25 |
| → jimm joined | 07:25 |
| → littlebobeep joined | 07:26 |
| ← Sulky__ left | 07:30 |
|
adlternative
| hi, I find that git annotated tag can point to another tag, and than this tag can point to another tag... how can I find the last derefence object from first tag? | 07:30 |
| → drogas joined | 07:31 |
| → soman joined | 07:31 |
| wynn → wolf | 07:34 |
| → enoq joined | 07:34 |
| → xiongxin1 joined | 07:34 |
| → EvilDMP joined | 07:34 |
| ← xiongxin left | 07:35 |
| xiongxin1 → xiongxin | 07:35 |
|
osse
| adlternative: try git rev-parse 'tagname^{commit}' | 07:35 |
| ← skapata left | 07:36 |
| ← toralf left | 07:36 |
| → toralf joined | 07:36 |
| ← dodobrain left | 07:37 |
| → lgc joined | 07:37 |
| → dodobrain joined | 07:38 |
| ← lgc left | 07:40 |
| ← mat001 left | 07:47 |
|
adlternative
| osse: thanks! I get it | 07:47 |
| ← dsrt^ left | 07:56 |
| → RiFo joined | 08:00 |
| ← mbalmer left | 08:00 |
| → Sulky joined | 08:01 |
| → to1ne joined | 08:01 |
| → jinsl000000 joined | 08:06 |
| → phcerdan joined | 08:07 |
| ← jinsl00000 left | 08:09 |
| ← squirrel left | 08:11 |
| → zeenk joined | 08:12 |
| → dig joined | 08:14 |
| ← farzat left | 08:16 |
| → kenanmarasli joined | 08:24 |
| → bkircher joined | 08:24 |
| ← jimm left | 08:26 |
| → jimm joined | 08:26 |
| → csm3105 joined | 08:27 |
| ← xiongxin left | 08:28 |
| → G30RD13 joined | 08:28 |
| → mncheck joined | 08:36 |
| → farzat joined | 08:40 |
| ← Betal left | 08:42 |
| → unluckyshrubbery joined | 08:42 |
| → dsrt^ joined | 08:45 |
| ← indy left | 08:46 |
| ← littlebobeep left | 08:49 |
| ← coot left | 08:49 |
| ← csm3105 left | 08:53 |
| → csm3105 joined | 08:53 |
| → ___nick___ joined | 08:54 |
| ← G30RD13 left | 08:55 |
| → SteveR joined | 08:57 |
|
SteveR
| Hi there, i have committed some files to local | 08:57 |
|
| how do i revert | 08:57 |
|
| i want to go back to the state where things are not commited | 08:57 |
|
selckin
| git reset HEAD^ undos the last commit | 08:57 |
| ← dsrt^ left | 08:58 |
|
SteveR
| selckin thanks, one more question. im working on 2 branches in a same folder | 09:00 |
|
| i want to switch to another branch and have the stash appear | 09:00 |
| ← SteveR left | 09:03 |
| ← bkircher left | 09:03 |
| → Anu joined | 09:03 |
| ← jinsl000000 left | 09:04 |
| → bkircher joined | 09:04 |
| → indy joined | 09:06 |
| → littlebobeep joined | 09:11 |
| ← indy left | 09:11 |
| → indy joined | 09:17 |
| → rsx joined | 09:18 |
| ← indy left | 09:22 |
| → indy joined | 09:22 |
| ← littlebobeep left | 09:22 |
| → nate4 joined | 09:22 |
| → littlebobeep joined | 09:23 |
| → pretty_dumm_guy joined | 09:24 |
| → Guest33 joined | 09:28 |
| ← nate4 left | 09:28 |
| ← Anu left | 09:28 |
| → Anu joined | 09:29 |
| ← rsx left | 09:30 |
| → onizu joined | 09:32 |
| ← Anu left | 09:35 |
| → Anu joined | 09:36 |
| ← dodobrain left | 09:37 |
| → dodobrain joined | 09:38 |
| ← phcerdan left | 09:39 |
| ← Guest33 left | 09:46 |
| → xiongxin joined | 09:46 |
| ← Masklin left | 09:47 |
| → Guest33 joined | 09:49 |
| ← gildasio1 left | 09:54 |
| → cdown joined | 09:56 |
| ← GNUmoon left | 09:57 |
| → cdown_ joined | 09:58 |
| ← cdown left | 10:01 |
| ← dionysus69 left | 10:01 |
| cdown_ → cdown | 10:01 |
| → TheCatBehemoth joined | 10:06 |
| → cdown_ joined | 10:07 |
| ← soman left | 10:08 |
| → GNUmoon joined | 10:08 |
| → cdown__ joined | 10:09 |
| ← cdown left | 10:09 |
| cdown__ → cdown | 10:09 |
| → rsx joined | 10:09 |
| ← cdown_ left | 10:11 |
| → xiongxin1 joined | 10:12 |
| ← xiongxin left | 10:12 |
| xiongxin1 → xiongxin | 10:12 |
| → haritz joined | 10:14 |
| ← haritz left | 10:14 |
| → haritz joined | 10:14 |
| ← structoha1 left | 10:16 |
| → nyah joined | 10:18 |
| ← vishal left | 10:19 |
| ← EvilDMP left | 10:22 |
| → vishal joined | 10:23 |
| ← fxbrain left | 10:23 |
| ← adlternative left | 10:23 |
| → EvilDMP joined | 10:24 |
| ← Sulky left | 10:27 |
| → Sulky joined | 10:27 |
| ← drogas left | 10:30 |
| ← LuKaRo left | 10:35 |
| ← jazzy left | 10:36 |
| ← TheCatBehemoth left | 10:36 |
| → LuKaRo joined | 10:37 |
| → fxbrain joined | 10:37 |
| → structoha1 joined | 10:40 |
| ← kaiseisei left | 10:40 |
| ← Jong left | 10:42 |
| → dionysus69 joined | 10:46 |
| → KnoP joined | 10:48 |
| → john_johnk joined | 10:51 |
| ← RiFo left | 10:53 |
| → G30RD13 joined | 10:53 |
| ← OnkelTem left | 10:54 |
| ← G30RD13 left | 10:55 |
| ← xiongxin left | 10:56 |
| ← structoha1 left | 10:56 |
| → OnkelTem joined | 10:57 |
| → RiFo joined | 10:57 |
| ← KnoP left | 10:57 |
| ← dodobrain left | 10:59 |
| ← OnkelTem left | 11:03 |
| → OnkelTem joined | 11:04 |
| ← kenanmarasli left | 11:05 |
| → Murr- joined | 11:06 |
| → pretty_d1 joined | 11:08 |
| ← pretty_d1 left | 11:08 |
| ← Murr left | 11:08 |
| Murr- → Murr | 11:08 |
| ← Guest33 left | 11:08 |
| ← pretty_dumm_guy left | 11:09 |
| → vitali64 joined | 11:10 |
| vitali64 → meowtali64 | 11:10 |
| → kalendermesrep joined | 11:12 |
| → Guest33 joined | 11:13 |
|
kalendermesrep
| join #github | 11:14 |
| ← kalendermesrep left | 11:14 |
| → KnoP joined | 11:15 |
| → geosmile joined | 11:16 |
| ← cation left | 11:18 |
| ← bremner left | 11:19 |
| → cousteau joined | 11:20 |
|
cousteau
| hint: core.useBuiltinFSMonitor=true is deprecated;please set core.fsmonitor=true instead | 11:20 |
|
| I didn't set that option explicitly; it was the Windows installer | 11:21 |
|
| Maybe the Windows installer needs to be changed so that it uses the new value? | 11:21 |
| ← GNUmoon left | 11:22 |
|
cousteau
| (are "bug reports via IRC" welcome?) | 11:22 |
| → dsrt^ joined | 11:25 |
| → pretty_dumm_guy joined | 11:25 |
|
osse
| cousteau: https://github.com/git-for-windows/git/issues/3853 | 11:27 |
| ← meowtali64 left | 11:28 |
|
cousteau
| Oh, so there it is... I was looking at git/git | 11:28 |
|
osse
| yeah git for windows is essentially a fork | 11:29 |
|
cousteau
| I see | 11:29 |
|
osse
| different project structure, different repo. | 11:29 |
|
| not a separate repo, but a fork with lots of changes (mostly additions I think) | 11:30 |
| → GNUmoon joined | 11:30 |
| → MajorBiscuit joined | 11:30 |
|
cousteau
| What's a separate repo anyway? | 11:31 |
| → bremner joined | 11:31 |
|
cousteau
| (well, I guess it's "a git project with no commits in common") | 11:31 |
| → Rashad joined | 11:31 |
|
osse
| yeah with orphan branches and whatnot I guess the whole world is one big repo :p | 11:32 |
| ← cousteau left | 11:33 |
| → cousteau_ joined | 11:35 |
|
cousteau_
| I suppose you meant that it was not created from scratch and that you can "mix" the two repos together | 11:35 |
|
| Although maybe they've diverged so much that it's impossible to merge the changes from one into the other... | 11:36 |
|
ikke
| That there is a shared history | 11:36 |
|
cousteau_
| <cousteau> (well, I guess it's "a git project with no commits in common") | 11:37 |
| ← GNUmoon left | 11:37 |
|
bookworm
| https://podcasts.google.com/feed/aHR0cHM6Ly9hcGkuc3Vic3RhY2suY29tL2ZlZWQvcG9kY2FzdC81NTcyNS5yc3M/episode/c3Vic3RhY2s6cG9zdDo0MjgzMTA4Ng?ep=14 for a nice background story from the maintainer | 11:37 |
|
cousteau_
| I thought I had sent that message, but the damn thing disconnected | 11:37 |
|
osse
| as far as i can see, git for windows is a bunch of commits that are rebased on top of git itself | 11:40 |
|
cousteau_
| Hm. Just wondering if putting together all git repos in the world into one big git repo would create hash collisions. | 11:40 |
|
| osse: OK, so sort of what I discussed some time ago about the "two-track graph where one track is periodically merged into the second" | 11:41 |
|
| which someone replied "that's called... a fork" | 11:41 |
|
bookworm
| is there a question somewhere? | 11:42 |
|
cousteau_
| Nah, just a remark | 11:45 |
| → GNUmoon joined | 11:46 |
| ← dsrt^ left | 11:47 |
| ← runlevel_0 left | 11:48 |
|
cousteau_
| Hm. __git_ps1 is horribly slow in Windows (1-2 seconds), so every time I enter a command on the "git bash" terminal it freezes for a couple of seconds just to print the next prompt | 11:48 |
|
| BUT, it works fine (0.2-0.3 s) if I run it as admin | 11:49 |
| ← rkta left | 11:51 |
| ← Jck_true left | 11:51 |
|
geosmile
| I'd like to share .ssh/config file between machines and was wondering what a good way of doing that is - perhaps using git? Or dropbox? perhaps someone here already does that? | 11:54 |
|
cousteau_
| Additionally, git bash starts in / rather than ~ when I open a new terminal window. This isn't the case if I run as admin; in that case it starts in ~ as expected. | 11:54 |
|
| geosmile: I don't see how git can help there, unless you mean using GitHub or similar | 11:56 |
|
| Are the machines in the same network? | 11:56 |
| → rkta joined | 11:56 |
|
geosmile
| cousteau_, not on the same network. Mac/linux boxes. Do people maintain their .bashrc in git? if yes, how do they install/use it per machine? | 11:57 |
|
gnoo
| some people do use git to track their dotfiles | 11:57 |
|
| but gnu stow is better suited for that task, or so i heard | 11:57 |
|
cousteau_
| I don't think people use git to track changes on their .bashrc, or individual files in general | 11:57 |
|
bookworm
| I do | 11:58 |
|
| lot's of other people I run into on the various Linux chans as well | 11:58 |
|
| why wouldn't you? | 11:58 |
|
cousteau_
| Would be kind of complicated since git projects are directories, so you'd need to have it in a separate directory, with scripts to sync it with your ~/.bashrc | 11:59 |
|
geosmile
| bookworm, i'd like to auto sync it - any ideas? | 11:59 |
|
cousteau_
| I mean, it can be done, but I didn't expect many people to do it | 12:00 |
|
| I was wrong, apparently | 12:00 |
|
geosmile
| cousteau_, put the setup directory on a shared drive like dropbox, and run an install script that links those files to the shared directory? | 12:00 |
|
bookworm
| "git project" ? | 12:00 |
|
cousteau_
| Er, repo | 12:00 |
| ← drew left | 12:00 |
|
bookworm
| I have a folder called dotfiles and link stuff from there. With the advent of xdg_config_dir just shove .config or whatever in a git repo and you're done | 12:01 |
|
| most application use it nowdays or at least can be coerced to | 12:01 |
|
| geosmile: depends on your definition of auto... systemd timer+ git pull, git push will work | 12:02 |
|
cousteau_
| I'm not sure symlinking ~/.bashrc to a Dropbox drive is a good idea; it may be better to have a startup script that syncs them... Maybe I'm just being paranoid though. | 12:02 |
|
bookworm
| no need for dropbox if you track it in git | 12:03 |
|
| git can sync just fine on its own | 12:03 |
|
cousteau_
| geosmile was suggesting using Dropbox to host the files | 12:03 |
|
bookworm
| yes, I'm aware | 12:03 |
| ← Murr left | 12:03 |
| → Murr joined | 12:04 |
|
bookworm
| git has a faq not to do that somewhere though iirc as it's easy to corrupt a repo this way | 12:04 |
|
cousteau_
| And well, symlinking ~/.bashrc to a file in a local git repo seems safer, since it's all local | 12:05 |
|
geosmile
| bookworm, i have 20 machines - and i'd want the dotfiles to sync automatically? I could write an ansible script from one machine to sync | 12:05 |
|
cousteau_
| (then again, maybe so is a Dropbox shared folder, not sure) | 12:05 |
|
bookworm
| sure, whatever floats your boat | 12:05 |
|
cousteau_
| Thing is, my understanding is that git's main purpose is for tracking changes, not deploying files | 12:06 |
|
| So if you're going to be interested in tracking changes then it may be a good option, but if it's just for deploying the files to multiple computers it may be overkill | 12:07 |
|
bookworm
| you do realize that quite a bunch of websites thingies operate with markdown on top of git as a deployment strategy yes? So does jenkins / CI/CD | 12:07 |
|
cousteau_
| Possibly, but not just git | 12:07 |
|
| I remember there was a factoid advising against that | 12:08 |
|
bookworm
| I think you are overthinking it a bit | 12:08 |
|
| keep it simple and stupid, if that's enough you're good, if not add a level on top | 12:08 |
|
cousteau_
| That's good advice, yes | 12:09 |
| → cousteau joined | 12:10 |
| ← cousteau_ left | 12:10 |
|
cousteau
| That's good advice, yes | 12:10 |
|
| (stupid irc client) | 12:10 |
|
| Re: my various issues with git for windows, I don't remember having any of these with my previous work laptop, so it may be an issue with this one | 12:12 |
| → donofrio__ joined | 12:15 |
| → pulse joined | 12:16 |
| → EvilDMP_ joined | 12:17 |
| ← donofrio_ left | 12:19 |
| ← EvilDMP left | 12:21 |
| ← strk left | 12:31 |
| → bloody joined | 12:32 |
| → EvilDMP joined | 12:35 |
| ← EvilDMP_ left | 12:38 |
| → EvilDMP_ joined | 12:41 |
| ← dig left | 12:43 |
| ← cousteau left | 12:43 |
| ← EvilDMP left | 12:43 |
| → dig joined | 12:44 |
| ← srinidhi left | 12:45 |
| → arch-angel joined | 12:48 |
| → bongobrown joined | 12:48 |
| ← bongobrown left | 12:49 |
| → bongobrown joined | 12:49 |
| ← littlebobeep left | 12:51 |
| ← lord| left | 12:52 |
| → causasui joined | 12:52 |
| → TheCatBehemoth joined | 12:53 |
| → G30RD13 joined | 12:55 |
| → lord| joined | 12:55 |
| ← YuGiOhJCJ left | 12:55 |
| ← TheCatBehemoth left | 12:58 |
| ← csm3105 left | 13:01 |
| → unknowiiooo joined | 13:01 |
| → ferdna joined | 13:02 |
| ← lord| left | 13:02 |
| ← Rashad left | 13:02 |
| ← unknowiiooo left | 13:03 |
| → lord| joined | 13:04 |
| → loulou_ joined | 13:05 |
| ← loulou_ left | 13:05 |
| → loulou_ joined | 13:05 |
| → FFY00 joined | 13:05 |
| → drogas joined | 13:16 |
| ← G30RD13 left | 13:18 |
| → csm3105 joined | 13:20 |
| → reset joined | 13:23 |
| → sandipan joined | 13:25 |
| ← saroy left | 13:25 |
| → nate4 joined | 13:27 |
| → igemnace joined | 13:29 |
| ← sandipan left | 13:31 |
| → hstct joined | 13:32 |
| → G30RD13 joined | 13:32 |
| ← G30RD13 left | 13:32 |
| → rgrinberg joined | 13:35 |
| ← tusko left | 13:37 |
| ← crabbedhaloablut left | 13:37 |
| ← FinnElija left | 13:37 |
| ← ghost43 left | 13:37 |
| → crabbedhaloablut joined | 13:37 |
| → tusko joined | 13:37 |
| → ghost43 joined | 13:38 |
| ← Guest33 left | 13:38 |
| → pmcnabb joined | 13:39 |
| ← acebrianjuan left | 13:39 |
| ← nate4 left | 13:40 |
| → FinnElija joined | 13:41 |
| ← rgrinberg left | 13:43 |
| → gildasio1 joined | 13:43 |
| ← bongobrown left | 13:47 |
| ← vdamewood left | 13:48 |
| ← pcarphin left | 13:48 |
| → pcarphin joined | 13:48 |
| ← KnoP left | 13:49 |
| → KnoP joined | 13:49 |
| ← KnoP left | 13:49 |
| → Rashad joined | 13:50 |
| → littlebobeep joined | 13:53 |
| → bongobrown joined | 13:54 |
| → coot joined | 13:55 |
| → rgrinberg joined | 13:57 |
| → derpydoo joined | 13:58 |
| ← julian left | 14:01 |
| → gh34 joined | 14:02 |
| → tangy joined | 14:04 |
| ← littlebobeep left | 14:04 |
| → bynx joined | 14:05 |
| → great_taste joined | 14:05 |
| → TheCatBehemoth joined | 14:06 |
| → trafficjam joined | 14:07 |
| ← elastic_dog left | 14:12 |
| tykling_ → tykling | 14:12 |
| → saroy joined | 14:12 |
| → vladoski joined | 14:12 |
| → elastic_dog joined | 14:14 |
| → ChmEarl joined | 14:15 |
| ← Tobbi_ left | 14:17 |
| ← trafficjam left | 14:17 |
| → Tobbi_ joined | 14:17 |
| → skapata joined | 14:17 |
| ← skapata left | 14:17 |
| → skapata joined | 14:17 |
| ← TheCatBehemoth left | 14:21 |
| → drbeco joined | 14:22 |
| → sudoforge joined | 14:23 |
| ← lemonsnicks left | 14:26 |
| → lemonsnicks joined | 14:27 |
| → vicfred joined | 14:28 |
| ← tangy left | 14:29 |
| → tangy joined | 14:29 |
| → vitali64 joined | 14:29 |
| ← SleePy left | 14:30 |
| → SleePy joined | 14:30 |
| ← derfflinger left | 14:32 |
| → dsrt^ joined | 14:32 |
| ← john_johnk left | 14:34 |
| → NightMonkey joined | 14:35 |
| → mat001 joined | 14:35 |
| ← ash_worksi left | 14:36 |
| → thiago joined | 14:36 |
| ← rsx left | 14:37 |
| → EvilDMP joined | 14:37 |
| ← FFY00 left | 14:37 |
| → ash_worksi joined | 14:37 |
| ← ash_worksi left | 14:38 |
| ← EvilDMP_ left | 14:40 |
| vitali64 → meowtali64 | 14:41 |
| ← tangy left | 14:42 |
| → tangy joined | 14:42 |
| ← cdown left | 14:43 |
| → cdown joined | 14:43 |
| ← ferdna left | 14:47 |
| → Noob1 joined | 14:47 |
| ← dig left | 14:49 |
| → laureee joined | 14:50 |
| → dig joined | 14:51 |
| ← dionysus69 left | 14:51 |
| ← vladoski left | 14:51 |
| → vladoski joined | 14:52 |
| ← enoq left | 14:53 |
| ← causasui left | 14:58 |
| ← toluene left | 14:59 |
| → clime joined | 15:00 |
| → Guest3345 joined | 15:01 |
| ← tangy left | 15:03 |
| ← ykrons left | 15:03 |
| → tangy joined | 15:03 |
| ← chexum left | 15:06 |
| → chexum joined | 15:06 |
| ← tangy left | 15:06 |
| → tangy joined | 15:06 |
| ← junktext left | 15:07 |
| ← Guest3345 left | 15:07 |
| → carl-- joined | 15:07 |
| → junktext joined | 15:08 |
| ← carl- left | 15:10 |
| ← gurkenglas left | 15:10 |
| → cation joined | 15:11 |
| → madewokherd joined | 15:13 |
| ← vladoski left | 15:13 |
| → vladoski joined | 15:13 |
| ← Xenguy left | 15:15 |
| → Guest3320 joined | 15:15 |
| ← madewokherd` left | 15:16 |
| → rsx joined | 15:26 |
| → gurkenglas joined | 15:27 |
| → zebrag joined | 15:28 |
| → srinidhi joined | 15:28 |
| → EvilDMP_ joined | 15:30 |
| ← EvilDMP left | 15:32 |
| ← vladoski left | 15:34 |
| → vladoski joined | 15:34 |
| ← dsrt^ left | 15:35 |
| → dsrt^ joined | 15:35 |
| → humanface joined | 15:35 |
| ← arch-angel left | 15:38 |
| ← Guest3320 left | 15:38 |
| → FFY00 joined | 15:38 |
| → kenanmarasli joined | 15:42 |
| ← EvilDMP_ left | 15:43 |
| → lbracher joined | 15:44 |
| ← csm3105 left | 15:46 |
| → EvilDMP joined | 15:46 |
|
lbracher
| Hello! I tried to push my code, but other dev changed something, so I pulled and merged code. I tried to `git rebase -i HEAD~2`, in order to `push --force` thereafter, but I'm not seeing the merged commit when I try to rebase, I see 2 older ones. How can I rebase just this merged commit and the one that comes last? Thanks in advance! | 15:47 |
|
bookworm
| if you rebase, the merge isn't needed anymore as you are linearizing the graph | 15:49 |
| ← Noob1 left | 15:51 |
| → EvilDMP_ joined | 15:52 |
| → masber joined | 15:52 |
| ← EvilDMP left | 15:52 |
|
lbracher
| bookworm, so I just need to push it? | 15:53 |
|
bookworm
| depends on what you did exactly | 15:53 |
|
| as in, whether you reparented your changes or modified theirs | 15:54 |
| ← rsx left | 15:55 |
|
masber
| hi, I have a gitea server managed by a different person, I used to git push/pull just fine while working on a branch I was given. Now I have created a new branch in my local and trying to push, however git pull freezes https://dpaste.org/64oxV I can't see any meaning message in the output so I have no idea how to proceed, any advice? | 15:55 |
|
bookworm
| if what you have is a,b,c,e,f and a to c is their stuff then simply push, if you reordered / modified and have a' through to c',e,f you can't and need to force | 15:56 |
|
lbracher
| bookworm, ok! I'll force then. Thanks! | 15:57 |
| ← vladoski left | 15:58 |
| → TomyWork joined | 15:58 |
| ← FinnElija left | 15:58 |
| → FinnElija joined | 16:00 |
| ← saroy left | 16:00 |
| ← fxbrain left | 16:00 |
| → Jck_true joined | 16:00 |
| ← dsrt^ left | 16:05 |
| ← EvilDMP_ left | 16:05 |
| → Noob1 joined | 16:05 |
| ← mat001 left | 16:05 |
| → mat001 joined | 16:06 |
| → Swahili joined | 16:06 |
| → EvilDMP joined | 16:08 |
| ← liberaider left | 16:10 |
| ← cixx left | 16:10 |
| ← Sulky left | 16:10 |
| ← bn_work left | 16:11 |
| → ethrl joined | 16:13 |
| ← madewokherd left | 16:14 |
| ← palasso left | 16:14 |
| → dtux joined | 16:14 |
| → palasso joined | 16:14 |
| → cixx joined | 16:16 |
| ← TomyWork left | 16:17 |
| ← ethrl left | 16:19 |
| → TomyWork joined | 16:20 |
| → fxbrain joined | 16:20 |
| → ethrl joined | 16:21 |
| ← TomyWork left | 16:21 |
| ← ethrl left | 16:22 |
| ← Noob1 left | 16:25 |
| → cousteau_ joined | 16:25 |
| ← cousteau_ left | 16:25 |
| ← masber left | 16:27 |
| ← drogas left | 16:30 |
| → causasui joined | 16:30 |
| ← laureee left | 16:32 |
| → Sulky joined | 16:33 |
| → pyevery__ joined | 16:33 |
| ← mexen left | 16:34 |
| ← MajorBiscuit left | 16:35 |
| → forgotmynick joined | 16:36 |
| ← FinnElija left | 16:37 |
| ← cixx left | 16:37 |
| → FinnElija joined | 16:37 |
| → ethrl joined | 16:37 |
| ← ethrl left | 16:38 |
| → cixx joined | 16:42 |
| → timn joined | 16:45 |
| ← timn left | 16:47 |
| ← tusko left | 16:48 |
| → tusko joined | 16:48 |
| → dsrt^ joined | 16:50 |
| → squirrel joined | 16:51 |
| ← reillybrogan left | 16:55 |
| → qswz joined | 16:57 |
| → reillybrogan joined | 16:57 |
|
qswz
| Can I made git diff --check ignore trailing whitespace. | 16:57 |
| → nate4 joined | 17:00 |
| ← humanface left | 17:01 |
|
osse
| qswz: see the core.whitespace setting in man git-config | 17:02 |
|
gitinfo
| qswz: the git-config manpage is available at https://gitirc.eu/git-config.html | 17:02 |
|
osse
| I'm guessing that --ignore-space-at-eol also fixes it | 17:02 |
| → Sasazuka joined | 17:04 |
| ← gurkenglas left | 17:06 |
| → gurkenglas joined | 17:07 |
| ← great_taste left | 17:10 |
| ← ___nick___ left | 17:10 |
| → great_taste joined | 17:11 |
| → ___nick___ joined | 17:12 |
| ← ___nick___ left | 17:12 |
| → laureee joined | 17:14 |
| ← dig left | 17:14 |
| → ___nick___ joined | 17:14 |
| → ethrl joined | 17:16 |
| → Betal joined | 17:16 |
|
qswz
| thanks | 17:18 |
| ← ethrl left | 17:18 |
| ← zeenk left | 17:18 |
| ← Rashad left | 17:22 |
| → Sulky_ joined | 17:23 |
| ← bongobrown left | 17:25 |
| ← Sulky left | 17:26 |
| → humanface joined | 17:28 |
| → thekingofbandit joined | 17:29 |
| ← laureee left | 17:33 |
| → madewokherd joined | 17:33 |
| → sobkas joined | 17:34 |
| ← reset left | 17:36 |
|
qswz
| g diff --check --ignore-space-change works but [apply]\n ignoreWhitespace = change in ~/.gitconfig not, weird | 17:38 |
| ← fxbrain left | 17:39 |
| → vdamewood joined | 17:40 |
|
qswz
| whitespace = nowarn as well | 17:44 |
| → ethrl joined | 17:44 |
| ← ethrl left | 17:45 |
| → littlebobeep joined | 17:45 |
| → runlevel_0 joined | 17:46 |
| → vinleod joined | 17:46 |
| ← vdamewood left | 17:47 |
| vinleod → vdamewood | 17:47 |
|
qswz
| hmm for some reason my alias was diff --cached --check | 17:48 |
| → Sasazuka__ joined | 17:52 |
| ← Sasazuka left | 17:55 |
| ← littlebobeep left | 17:56 |
| ← Swahili left | 17:56 |
| → littlebo1eep joined | 17:56 |
| → john_johnk joined | 17:57 |
| → fxbrain joined | 17:57 |
| ← sobkas left | 18:04 |
| ← littlebo1eep left | 18:05 |
| → ethrl joined | 18:06 |
| → littlebobeep joined | 18:06 |
| ← ethrl left | 18:07 |
| → node1 joined | 18:08 |
| ← nate4 left | 18:10 |
| → Sulky__ joined | 18:12 |
| → sobkas joined | 18:14 |
| ← Sulky_ left | 18:15 |
| ← Sulky__ left | 18:15 |
| ← littlebobeep left | 18:16 |
| eqw_ → eqw | 18:17 |
| → littlebobeep joined | 18:26 |
| ← derpydoo left | 18:26 |
| ← KlungelSmurf left | 18:32 |
| → KlungelSmurf joined | 18:32 |
| ← dsrt^ left | 18:33 |
| ← cixx left | 18:34 |
| ← john_johnk left | 18:38 |
| → hex_ joined | 18:38 |
| → cixx joined | 18:39 |
| ← sobkas left | 18:39 |
| ← cloaker left | 18:41 |
| ← node1 left | 18:41 |
| → cloaker joined | 18:41 |
| → jonesiDev joined | 18:43 |
| ← vicfred left | 18:43 |
| ← Qudit left | 18:44 |
| ← qswz left | 18:44 |
| ← jonesiDev left | 18:45 |
| → sobkas joined | 18:45 |
| → zeenk joined | 18:45 |
| → vicfred joined | 18:46 |
| ← txtsd left | 18:49 |
| ← meowtali64 left | 18:51 |
| ← coot left | 18:53 |
| → meowtali64 joined | 18:53 |
| ← forgotmynick left | 18:56 |
| ← srinidhi left | 18:58 |
| → carl--- joined | 18:58 |
| ← gh34 left | 19:00 |
| → Guest33 joined | 19:00 |
| → dsrt^ joined | 19:00 |
| → txtsd joined | 19:00 |
| ← littlebobeep left | 19:01 |
| ← carl-- left | 19:01 |
| → structoha1 joined | 19:03 |
| ← meowtali64 left | 19:05 |
| → ferdna joined | 19:10 |
| ← sobkas left | 19:15 |
| → mexen joined | 19:18 |
| → sobkas joined | 19:18 |
| ← gurkenglas left | 19:18 |
| ← sobkas left | 19:18 |
| → Noisytoot_ joined | 19:18 |
| ← Noisytoot left | 19:19 |
| → sobkas joined | 19:20 |
| → lejocelyn joined | 19:22 |
| ← HelloShitty left | 19:22 |
| ← structoha1 left | 19:23 |
| ← ferdna left | 19:25 |
| ← causasui left | 19:28 |
| ← otisolsen70 left | 19:32 |
|
squirrel
| do you use the 50/72 character rule for git messages? i wonder if should continue to adhere to the rule, it feels a bit limiting, especially the rule for the title | 19:32 |
|
ikke
| squirrel: I use a soft limit of 50 for the subject | 19:32 |
| → littlebobeep joined | 19:32 |
|
ikke
| So I do go over it from time to time | 19:33 |
|
| But in general, I try to still use that | 19:34 |
|
squirrel
| apparently “50” comes from linux kernel, if you group commits by title length then most of them will have around 50 characters | 19:35 |
|
| which sounds to me a rather awful reason for a hard limit of 50 characters | 19:35 |
|
j416
| squirrel: I use 50/72 for everything but automated message for things like merges and reversions, which sometimes exceed 50 for the subject. | 19:35 |
|
ikke
| Having concise titles makes them nicer to read | 19:35 |
|
j416
| squirrel: but I make an effort to _always_ have the subject <= 50, and I have my editor wrap at 72 for the body. | 19:36 |
| → HelloShitty joined | 19:36 |
|
ikke
| squirrel: having a limit like that makes you really think about how to summarized the changes as succinct as possible | 19:36 |
|
j416
| well, _always_, except for above special cases obviously. | 19:36 |
|
| did I just say the same thing 2 times >.> | 19:36 |
|
ikke
| (or make people use subjects like 'fixes') | 19:36 |
|
| j416 out of brain energy | 19:37 |
| → bongobrown joined | 19:37 |
|
squirrel
| ...i mean, if you hold linux kernel commits as an example, you shouldn't be using a limit of 50, since using it means your average commit title length will be less than that of linux kernel | 19:37 |
|
nedbat
| squirrel: the idea is that a commit is like an email message: a short subject, and a detailed body. | 19:37 |
|
ikke
| ^ | 19:38 |
| → coot joined | 19:38 |
|
ikke
| And like I said, I use it as a soft limit | 19:38 |
|
mackerman
| Copy editors in various media would love to have all of 50 characters for headlines | 19:39 |
| → gas51627 joined | 19:39 |
|
squirrel
| nedbat: i write an get emails that have long descriptive titles and i get emails with long titles. was that ever a thing? | 19:41 |
| Noisytoot_ → Noisytoot | 19:41 |
|
nedbat
| squirrel: none of this is carved in stone, or enforced. | 19:41 |
|
osse
| I think it ties into the 80 col terminal thing | 19:43 |
|
| 72 lets you quote a couple of times (> > ...) | 19:43 |
|
squirrel
| i mean, of course i try to keep my git commit titles brief, but often 50 characters is not enough, and the rule is rather arbitrary | 19:44 |
|
osse
| 50 leaves room for "Subject: " and "[PATCH 1/5]" before it | 19:44 |
|
squirrel
| 72 comes from 80 characters minus git log ident of 4 characters minus 4 characters from the right so that text appears centered, but... the 80 characters rule is itself a bit outdated | 19:45 |
| ← remedan left | 19:45 |
|
j416
| think of it this way; it makes sense for there to be _some_ limit, and it happens to be 50. You don't _have_ to make it 50 chars, but make it at most that. If we say 50 is too short, let's make the subject 80, then people will say the same thing that 80 is too short, let's make it 100 | 19:45 |
| ← hex_ left | 19:46 |
|
osse
| I think the 72 predates Git itself. | 19:46 |
|
| But that works too, I guess | 19:46 |
|
squirrel
| 50 is just an arbitrary number | 19:46 |
|
ikke
| 72 = 80 - indentation | 19:46 |
| → node1 joined | 19:47 |
| ← cixx left | 19:47 |
| → srinidhi joined | 19:47 |
| ← dsrt^ left | 19:47 |
|
squirrel
| i'm thinking of a hard limit of 88 characters for both body and title. this is what Black uses and this is what i use even though i don't use Black. i sometimes put code into commit messages so that is going to work okay as well | 19:49 |
| ← node1 left | 19:49 |
|
squirrel
| is there any place where 88 characters wouldn't fit? | 19:50 |
|
osse
| Within the default size of gnome-terminal, for example | 19:51 |
|
| Also punch cards from the 70s | 19:51 |
| ← littlebobeep left | 19:52 |
|
j416
| why use something different | 19:52 |
|
osse
| xterm also defaults to 80 | 19:52 |
| ← sobkas left | 19:52 |
|
mackerman
| Small commit viewers in editors (GitLens in VS Code for example) | 19:52 |
| → littlebobeep joined | 19:52 |
|
j416
| narrow tmux panes | 19:53 |
|
osse
| Ancient limits and recommendations became today's defaults | 19:53 |
|
| that sums it up quite nicely, I think | 19:53 |
|
squirrel
| do people really use those defaults? | 19:54 |
|
osse
| almost no terminal I use is 80 columns wide, if that's what you're asking | 19:55 |
| → sobkas joined | 19:55 |
|
ikke
| half a terminal on my screen is 120 characters | 19:55 |
|
osse
| The one I'm typing this in is 102, because of panes and display width versus font size | 19:55 |
|
squirrel
| I looked up screenshots of GitLens and it looks like it can fit more than 50 characters | 19:55 |
| → m0viefreak joined | 19:56 |
|
osse
| I just meant that if you open a plain gnome terminal of xterm today it'll default to being 80 cols wide. And the reasons for that are (I guess) just old habits | 19:57 |
|
| Do whatever you want | 19:57 |
| → Sulky joined | 19:57 |
| ← Guest33 left | 19:58 |
|
squirrel
| or maybe i should use 76 characters, then it would fit all the old terminals but still gives enough room for a decent title | 19:58 |
|
mackerman
| The point of side bar views is to split screen, and where GitLens shows commit messages is usually not very wide https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens#side-bar-views- | 20:00 |
|
ikke
| There is also an art part to it | 20:00 |
| → acebrianjuan joined | 20:01 |
| → abu joined | 20:01 |
| ← bkircher left | 20:02 |
|
osse
| It also seems to use a proportional font? So it'll be approx. anyway | 20:03 |
| ← Murr left | 20:03 |
| → Murr joined | 20:04 |
| ← ___nick___ left | 20:04 |
|
mackerman
| Feel free to go nuts in the rest of the commit message. I enjoy finding a thousand word short essay on why, what, and how the improvement was tested. | 20:06 |
| ← donofrio__ left | 20:06 |
| ← RiFo left | 20:07 |
| → nate4 joined | 20:08 |
| → donofrio joined | 20:10 |
| ← infogulch left | 20:10 |
|
squirrel
| well, i'm still going to use short titles, since more often than not you only need a few words. but the rule of 50 seems to be defeating its own purpose. but yeah sometimes i like to write a short essay in the body :) | 20:11 |
|
ikke
| squirrel: I see the 50 charachter limit as a challenge | 20:12 |
|
| Can I summarize this change without 50 characters while still conveying what is happening | 20:12 |
| ← nate4 left | 20:13 |
| ← The_Blode left | 20:15 |
|
squirrel
| this challenge can be hard. right now, i'm cleaning up a branch, rewording commits after converting a file from java to kotlin. in this particular commit, i moved various methods and variables related to client certificate from a class to file level. i'm looking at “Refactor SSLHandler: client cert stuff to file level” and it's already 52 characters | 20:19 |
|
| i guess i'm going to lose this time | 20:19 |
| ← Maxattax left | 20:19 |
| → hqdruxn08_ joined | 20:19 |
|
ikke
| I would make no issue out of 52 characters to be honest | 20:20 |
| → Maxattax joined | 20:21 |
| ← fxbrain left | 20:21 |
| ← hqdruxn08__ left | 20:23 |
| → geosmileus joined | 20:24 |
| ← geosmile left | 20:27 |
| → cousteau joined | 20:28 |
|
cousteau
| I don't know how much on-topic is "git bash for Windows" in this channel, but... it's damn slow! | 20:29 |
| → cixx joined | 20:29 |
| ← sobkas left | 20:30 |
|
ikke
| cousteau: if you have the option, try WSL2 | 20:30 |
|
cousteau
| Specifically, every single command has a ~0.5 s penalty. Example, `for i in {1..5}; do date +%s.%N; done` | 20:31 |
|
| But... not if I run as admin, for some obscure reason | 20:31 |
| → sobkas joined | 20:31 |
|
cousteau
| ikke: hm, thanks a lot! I might try that, let me see if I can install it | 20:31 |
| ← pyevery__ left | 20:31 |
| ← sobkas left | 20:33 |
| → Qudit joined | 20:33 |
| ← cixx left | 20:35 |
|
cousteau
| ...then again, I seriously doubt my company would allow installing a virtual machine (WSL2 is pretty much a VM, right?) | 20:35 |
| ← Visor left | 20:35 |
|
bremner
| it's from Microsoft though. | 20:35 |
| → Visor joined | 20:35 |
|
bremner
| not sure if sarcastic... | 20:36 |
|
cousteau
| It's for my work PC, it's already tainted by MS products anyway | 20:36 |
|
ikke
| If you have / want to use a linux-like environment on windows, wsl2 is your best option | 20:36 |
| ← lejocelyn left | 20:37 |
|
cousteau
| Even more than a virtual machine? | 20:37 |
|
| ...come to think of it, probably yes | 20:37 |
|
| cousteau uses Linux on the machines where he gets to decide which OS they run, such as my personal laptop, but for work PCs the story changes | 20:38 |
|
ikke
| Well, no, to me a VM is still better | 20:38 |
|
| for some reason, ssh sessins in WSL2 randomly drop | 20:38 |
|
cousteau
| Oh | 20:39 |
| ← bynx left | 20:39 |
| → Xenguy joined | 20:39 |
|
cousteau
| git bash is based on Msys2, right? So maybe if I wanted to annoy someone it should be the #msys channel or whatever it's called | 20:40 |
| → fxbrain joined | 20:40 |
|
ikke
| It's msys indeed | 20:40 |
| ← hqdruxn08_ left | 20:40 |
| → sobkas joined | 20:40 |
|
cousteau
| Let me see if I'm able to find a standalone msys console that isn't burdened by anything git related (I guess there should be something like that installed somewhere) | 20:41 |
| ← rgrinberg left | 20:43 |
| → hqdruxn08 joined | 20:44 |
|
cousteau
| Oof... Running bash from the windows command line gives me a very very low latency. Could this be just a problem with the terminal? | 20:44 |
| ← fxbrain left | 20:45 |
| ← keypusher left | 20:46 |
| ← junktext left | 20:46 |
| → keypusher joined | 20:47 |
| ← thebombzen left | 20:47 |
| → cixx joined | 20:47 |
| → junktext joined | 20:47 |
| ← carl--- left | 20:49 |
|
cousteau
| Seriously, if all this turns out to be an issue with MinTTY, I swear... | 20:51 |
| ← hqdruxn08 left | 20:52 |
| ← cixx left | 20:52 |
|
cousteau
| Just reinstalled git for windows choosing the Windows cmd instead of MinTTY, that didn't work. I'm more and more confused. | 20:54 |
| ← onizu left | 20:54 |
| → derpydoo joined | 20:56 |
|
osse
| you can install a proper msys2 environment (which git for windows is based on) and install git into that | 20:59 |
|
| not sure it helps with speed | 20:59 |
|
| the admin thing sounds really suspicious. could it be windows defender? I've had to whitelist cygwin/msys stuff before | 20:59 |
|
cousteau
| I was looking for the installed Msys2 just to cross-check | 21:00 |
|
osse
| If you work on Windows on Windows products then I think WSL will be awkward to use, though I haven't actually tried it for real. Just my impressionm of tinkering with it a bit. It seems too VMy | 21:00 |
|
cousteau
| To see if the problem was with msys2 or with git bash | 21:00 |
|
| Well, WSL1 was Wine-style, I would expect that to be less VM-y | 21:01 |
|
osse
| investigate the admin angle. | 21:02 |
|
| it's not like the admin user can use more cpu. there must be some security crap causing it | 21:02 |
| → remedan joined | 21:03 |
|
bookworm
| antivirus can be problematic with executable stuff | 21:03 |
|
osse
| have you simplied the bash prompt while running these tests? | 21:03 |
|
cousteau
| So. If I run "C:\Program Files\Git\bin\bash" from a Windows command prompt, without admin rights, it works fine. Feels even faster than MinTTY/msys2 with admin rights. | 21:04 |
|
| "the windows command prompt is somehow whitelisted by the antivirus" is a feasible explanation, yes... | 21:05 |
|
| osse: one of the tests was a for loop; that shouldn't be affected by the prompt between loop iterations | 21:06 |
| → dionysus69 joined | 21:06 |
|
osse
| true | 21:06 |
| ← eroux left | 21:07 |
| ← coot left | 21:07 |
| ← great_taste left | 21:07 |
| → great_taste joined | 21:07 |
| ← humanface left | 21:07 |
| → eroux joined | 21:09 |
| ← sobkas left | 21:10 |
| ← abu left | 21:13 |
| → Thanzex joined | 21:13 |
| → bluekoopa joined | 21:16 |
| → cluelessperson joined | 21:17 |
|
cluelessperson
| is there anyway to ignore everything wiht *, but then specifically include a subdirectory like !/usr/share/some_dir ? | 21:17 |
|
cousteau
| OK, I created a shortcut that calls `cmd /C "C:\Program Files\Git\bin\bash.exe"` and has the Git icon, and pinned that to my taskbar. I'm calling it fixed. | 21:17 |
| ← littlebobeep left | 21:18 |
|
cousteau
| cluelessperson: ignore everything inside the dir, but not the dir itself | 21:18 |
|
cluelessperson
| cousteau, I mean, I'm doing git from the root, and I only want to repo certain files in the FS that I include | 21:19 |
|
cousteau
| /foo/bar/* !/foo/bar/baz | 21:19 |
|
cluelessperson
| cousteau, I'm not saying I want to ignore files in the subdirectory | 21:19 |
| → sobkas joined | 21:19 |
|
cluelessperson
| I saying I want to ignore EVERYTHING | 21:19 |
|
| but the subdirectory | 21:19 |
|
cousteau
| Oh, uh... Not sure doing git from the root of your file system is a good idea | 21:19 |
|
cluelessperson
| * and !/usr/share/some_dir | 21:19 |
|
| why? | 21:19 |
|
| it's a system I don't otherwise control, but I want to moderate changes to files I care about. | 21:20 |
|
| proprietary built embedded bs | 21:20 |
|
cousteau
| Wouldn't it be wiser to make that specific subdir a git repo? | 21:20 |
|
| Oh OK, so it's not an everyday machine, like a PC or something... Still, it doesn't feel right to me, not sure if I'm just being paranoid. | 21:21 |
|
cluelessperson
| cousteau, no, because there's a handful of them across the system | 21:22 |
|
| cousteau, it's fine | 21:22 |
|
| I just need the ignore thing to work | 21:22 |
|
cousteau
| Anyway, /* !/usr /usr/* !/usr/share /usr/share/* !/usr/share/some_dir | 21:23 |
|
| I think that's the way to do it | 21:23 |
|
cluelessperson
| yeah, that's what I'm doing so far | 21:24 |
|
cousteau
| If you ignore a directory, you can't selectively unignore files/subdirectories from it. So the trick is to not ignore the directory, but everything inside it. | 21:24 |
|
| I don't think there's a shortcut to it. | 21:25 |
| ← feriman left | 21:26 |
|
mackerman
| sudo -u root git clean -fX # good bye system | 21:26 |
| → julian joined | 21:28 |
| ← cousteau left | 21:31 |
| ← cation left | 21:33 |
| → cation joined | 21:33 |
| ← loulou_ left | 21:37 |
| ← madewokherd left | 21:42 |
| ← sobkas left | 21:46 |
| → sobkas joined | 21:53 |
| ← _xor left | 21:54 |
| ← dionysus69 left | 21:57 |
| ← lbracher left | 22:00 |
| → pyevery__ joined | 22:03 |
| ← Murr left | 22:03 |
| → Murr joined | 22:03 |
| ← lord| left | 22:04 |
| → littlebobeep joined | 22:05 |
| ← konrados left | 22:05 |
| → konrados joined | 22:06 |
| → lord| joined | 22:09 |
| → madewokherd joined | 22:10 |
| ← bluekoopa left | 22:11 |
| ← littlebobeep left | 22:16 |
| → littlebobeep joined | 22:17 |
| → rgrinberg joined | 22:19 |
| ← sobkas left | 22:22 |
| → littlebo1eep joined | 22:25 |
| → gast0n joined | 22:25 |
| → sobkas joined | 22:27 |
| ← palasso left | 22:27 |
| ← littlebobeep left | 22:27 |
| ← bongobrown left | 22:28 |
|
bookworm
| only if you are in / and the thing is actually a repo | 22:29 |
|
| else it would just nuke the cwd repo, same as if you run it as a normal user | 22:29 |
| → littlebobeep joined | 22:30 |
| ← littlebo1eep left | 22:33 |
| ← mexen left | 22:38 |
| ← m0viefreak left | 22:38 |
| ← gas51627 left | 22:39 |
|
cluelessperson
| mackerman, yeah but why would I do that | 22:43 |
|
| :P | 22:43 |
| → littlebo1eep joined | 22:47 |
| ← littlebobeep left | 22:48 |
| ← rgrinberg left | 22:48 |
| → cixx joined | 22:48 |
| → rgrinberg joined | 22:49 |
| ← squirrel left | 22:51 |
| ← cixx left | 22:53 |
| ← rgrinberg left | 22:53 |
| → rgrinberg joined | 22:55 |
| → bluekoopa joined | 22:56 |
| → Koeniz joined | 22:56 |
| ← acebrianjuan left | 22:59 |
| ← sobkas left | 23:01 |
| ← lemonsnicks left | 23:02 |
| ← yuljk left | 23:02 |
| → MIsAn joined | 23:02 |
| → lemonsnicks joined | 23:03 |
| → cixx joined | 23:04 |
| → sobkas joined | 23:06 |
| ← Murr left | 23:06 |
| → Murr joined | 23:07 |
| ← cixx left | 23:09 |
| → Guest69 joined | 23:12 |
| ← srinidhi left | 23:13 |
| → howdoi joined | 23:13 |
| ← zeenk left | 23:20 |
| → cixx joined | 23:21 |
| ← vicfred left | 23:21 |
| → vicfred_ joined | 23:21 |
| ← cixx left | 23:26 |
| ← pretty_dumm_guy left | 23:27 |
| → Yruama joined | 23:27 |
| ← kenanmarasli left | 23:28 |
| ← vdamewood left | 23:30 |
| ← pyevery__ left | 23:30 |
| → nate4 joined | 23:30 |
| ← nyah left | 23:33 |
| ← nivag left | 23:34 |
| ← sobkas left | 23:35 |
| → xkoncek5 joined | 23:36 |
| ← xkoncek left | 23:37 |
| xkoncek5 → xkoncek | 23:37 |
| ← glider left | 23:37 |
| → cixx joined | 23:38 |
| ← bloodElk left | 23:38 |
| ← littlebo1eep left | 23:38 |
| → nivag joined | 23:39 |
| ← Peng left | 23:39 |
| ← bartman left | 23:39 |
| ← ColdKeyboard left | 23:40 |
| ← eldritch left | 23:40 |
| ← dslegends_ left | 23:40 |
| → littlebobeep joined | 23:40 |
| → ferdna joined | 23:40 |
| ← fdisotto_ left | 23:41 |
| ← jelmer left | 23:41 |
| ← AsenMx left | 23:41 |
| → sobkas joined | 23:41 |
| ← sobkas left | 23:42 |
| ← ringo__ left | 23:43 |
| ← nate4 left | 23:45 |
| ← magic_ninja left | 23:45 |
| → bloodElk joined | 23:46 |
| → prime joined | 23:47 |
| → nedbat joined | 23:47 |
| → Peng joined | 23:47 |
| → magic_ninja joined | 23:47 |
| ← cixx left | 23:48 |
| ← clime left | 23:49 |
| → bambams joined | 23:51 |
| → ColdKeyboard joined | 23:51 |
| → dslegends joined | 23:51 |
| ← littlebobeep left | 23:52 |
| → bartman joined | 23:52 |
| → eldritch joined | 23:53 |
| → hernan joined | 23:55 |
| → jelmer joined | 23:56 |
| → robszarka joined | 23:56 |
| → littlebobeep joined | 23:57 |
| → hbautista joined | 23:58 |
| ← rszarka left | 23:59 |
| ← magic_ninja left | 23:59 |