| 2021-04-08 |
| ← AnAverageHuman left | 00:00 |
|
amerlyq
| computeiro: git checkout . | 00:00 |
|
| is you really want to lose your changes, of course | 00:00 |
| → AnAverageHuman joined | 00:00 |
|
amerlyq
| Is there any way to limit git-log and git-show message to <=N lines? I'm looking through linux-kernel commit messages and want to speed-up the process somewhat. | 00:01 |
| ← arcatech_ left | 00:03 |
| → DevAntoine joined | 00:05 |
| ← codebam left | 00:06 |
| → codebam joined | 00:07 |
|
computeiro
| amerlyq: ty | 00:09 |
| ← DevAntoine left | 00:10 |
| ← tiin57 left | 00:13 |
| → tiin57 joined | 00:16 |
| ← codebam left | 00:16 |
| → codebam joined | 00:17 |
| → causasui joined | 00:18 |
| ← Sazhen86 left | 00:20 |
| → DevAntoine joined | 00:21 |
| ← codebam left | 00:22 |
| → codebam joined | 00:24 |
| ← misuto left | 00:24 |
| ← kh31d4r left | 00:24 |
| ← DevAntoine left | 00:25 |
| → jstimm joined | 00:28 |
| ← stats4647 left | 00:28 |
| → stats4647 joined | 00:29 |
| ← codebam left | 00:31 |
| → kh31d4r joined | 00:32 |
| ← stats4647 left | 00:33 |
| → codebam joined | 00:34 |
| ← cd left | 00:35 |
| ← nivag left | 00:35 |
| → DevAntoine joined | 00:37 |
| → misuto joined | 00:41 |
| ← codebam left | 00:41 |
| ← DevAntoine left | 00:41 |
| → nivag joined | 00:42 |
| → nivag_ joined | 00:42 |
| ← tiin57 left | 00:42 |
| → Hello71 joined | 00:44 |
| → codebam joined | 00:44 |
| → tiin57 joined | 00:46 |
| ← nivag_ left | 00:49 |
| ← codebam left | 00:50 |
| ← zebrag left | 00:52 |
| → zebrag joined | 00:52 |
| → DevAntoine joined | 00:52 |
| → codebam joined | 00:54 |
| → xissburg joined | 00:56 |
| ← bin4ry81 left | 00:57 |
| ← DevAntoine left | 00:57 |
| → bin4ry81 joined | 00:57 |
| → stats4647 joined | 00:59 |
| ← krofe left | 01:00 |
| ← codebam left | 01:01 |
| ← gearnode left | 01:03 |
| → codebam joined | 01:03 |
| ← stats4647 left | 01:05 |
| ← thomas_25- left | 01:05 |
| ← thomas_25 left | 01:07 |
| → DevAntoine joined | 01:08 |
| → budonyc joined | 01:08 |
| → thomas_25 joined | 01:09 |
| → drbean_ joined | 01:10 |
| ← codebam left | 01:10 |
| ← ARoxdale left | 01:10 |
| → codebam joined | 01:11 |
| ← tiin57 left | 01:13 |
| ← DevAntoine left | 01:13 |
| ← gast0n left | 01:14 |
| → tiin57 joined | 01:16 |
| ← codebam left | 01:18 |
| → gast0n joined | 01:18 |
| ← Jackneill left | 01:20 |
| → thomas_25- joined | 01:20 |
| → codebam joined | 01:21 |
| ← vicfred left | 01:24 |
| → DevAntoine joined | 01:24 |
| ← PJBoy left | 01:25 |
| ← gast0n left | 01:27 |
| ← cads left | 01:27 |
| → cads joined | 01:28 |
| ← DevAntoine left | 01:28 |
| → gast0n joined | 01:31 |
| ← maxel left | 01:32 |
| ← budonyc left | 01:32 |
| → Jackneill joined | 01:32 |
| ← cads left | 01:32 |
| → cads2 joined | 01:33 |
| ← codebam left | 01:35 |
| → codebam joined | 01:35 |
| ← gast0n left | 01:40 |
| → DevAntoine joined | 01:40 |
| → nsc joined | 01:41 |
| ← shush left | 01:41 |
| ← codebam left | 01:42 |
| ← zebrag left | 01:42 |
| ← nsc_ left | 01:42 |
| ← tiin57 left | 01:42 |
| → royal_screwup21 joined | 01:43 |
| → gast0n joined | 01:44 |
| ← DevAntoine left | 01:44 |
| → shush joined | 01:44 |
| → maxel joined | 01:45 |
| ← magic_ninja left | 01:45 |
| → codebam joined | 01:45 |
| → magic_ninja joined | 01:46 |
| → tiin57 joined | 01:46 |
| ← Xenguy left | 01:47 |
| → Xenguy joined | 01:48 |
| ← royal_screwup21 left | 01:48 |
| → magic_ninja1 joined | 01:48 |
| ← magic_ninja left | 01:48 |
| → dimi1947 joined | 01:48 |
| ← dimi1947 left | 01:50 |
| ← codebam left | 01:52 |
| → dimi1947 joined | 01:52 |
| → codebam joined | 01:53 |
| ← gast0n left | 01:53 |
| ← dimi1947 left | 01:54 |
| → dimi1947 joined | 01:54 |
| → stats4647 joined | 01:55 |
| → DevAntoine joined | 01:55 |
| ← dimi1947 left | 01:57 |
| → dimi1947 joined | 01:57 |
| → gast0n joined | 01:57 |
| ← dimi1947 left | 01:58 |
| → dimi1947 joined | 01:58 |
| ← cads2 left | 01:59 |
| ← stats4647 left | 01:59 |
| ← gast0n left | 02:00 |
| ← DevAntoine left | 02:00 |
| → rosco joined | 02:02 |
| ← rosco_y left | 02:04 |
| ← computeiro left | 02:05 |
| ← magic_ninja1 left | 02:06 |
| → magic_ninja joined | 02:07 |
| → va5c0 joined | 02:07 |
| ← codebam left | 02:09 |
| ← kadoban_ left | 02:10 |
| ← causasui left | 02:11 |
| → DevAntoine joined | 02:11 |
| → codebam joined | 02:12 |
| ← tiin57 left | 02:12 |
| → gast0n joined | 02:12 |
| ← va5c0 left | 02:14 |
| ← DevAntoine left | 02:15 |
| → tiin57 joined | 02:16 |
| ← codebam left | 02:19 |
| → causasui joined | 02:20 |
| ← dimi1947 left | 02:20 |
| → dimi1947 joined | 02:21 |
| → codebam joined | 02:22 |
| ← gast0n left | 02:23 |
| ← Fokst left | 02:26 |
| → Fokst joined | 02:27 |
| → DevAntoine joined | 02:27 |
| → jimklimov joined | 02:27 |
| → Muimi joined | 02:28 |
| ← codebam left | 02:29 |
| ← jimklimov1 left | 02:30 |
| ← mindCrime_ left | 02:31 |
| ← DevAntoine left | 02:31 |
| → codebam joined | 02:32 |
| → gast0n joined | 02:32 |
| ← codebam left | 02:36 |
| → jaziz1 joined | 02:37 |
| ← jaziz left | 02:40 |
| → codebam joined | 02:42 |
| → Whistler joined | 02:42 |
| ← tiin57 left | 02:42 |
| → DevAntoine joined | 02:43 |
| ← gast0n left | 02:43 |
| ← lawt left | 02:44 |
| → tiin57 joined | 02:46 |
| → lawt joined | 02:47 |
| ← DevAntoine left | 02:47 |
| ← codebam left | 02:48 |
| → snowkidimd joined | 02:50 |
| → gast0n joined | 02:51 |
| ← shush left | 02:52 |
| → codebam joined | 02:52 |
| → shush joined | 02:52 |
| → arcatech joined | 02:53 |
| → InfiniteZero_ joined | 02:55 |
| → FinnElija joined | 02:56 |
| finn_elija → Guest82750 | 02:56 |
| FinnElija → finn_elija | 02:56 |
| ← Aquazi left | 02:57 |
| ← shush left | 02:58 |
| ← InfiniteZero left | 02:58 |
| → DevAntoine joined | 02:58 |
| ← Guest82750 left | 02:59 |
| → prg3 joined | 03:00 |
| ← AlpineLlama left | 03:00 |
| ← gast0n left | 03:00 |
| ← gschanuel left | 03:00 |
| ← codebam left | 03:01 |
| → codebam joined | 03:01 |
| → gschanuel joined | 03:01 |
| → AlpineLlama joined | 03:02 |
| ← DevAntoine left | 03:03 |
| ← rosco left | 03:04 |
| ← arcatech left | 03:04 |
| ← codebam left | 03:06 |
| → gast0n joined | 03:08 |
| → powerhouse_ joined | 03:08 |
| ← Loomaanaatii left | 03:08 |
| → codebam joined | 03:09 |
| ← causasui left | 03:09 |
| → Loomaanaatii joined | 03:12 |
| ← tiin57 left | 03:12 |
| ← gast0n left | 03:12 |
| → DevAntoine joined | 03:14 |
| → tiin57 joined | 03:16 |
| → arcatech joined | 03:18 |
| ← DevAntoine left | 03:19 |
| ← batrick left | 03:19 |
| → shush joined | 03:23 |
| ← arcatech left | 03:23 |
| ← thomas_25 left | 03:23 |
| → thomas_25 joined | 03:24 |
| → Goplat joined | 03:28 |
| → DevAntoine joined | 03:30 |
| ← DevAntoine left | 03:35 |
| ← tiin57 left | 03:42 |
| → royal_screwup21 joined | 03:43 |
| ← CryptoClub left | 03:45 |
| → tiin57 joined | 03:45 |
| → DevAntoine joined | 03:46 |
| ← royal_screwup21 left | 03:48 |
| → CryptoClub joined | 03:48 |
| → Loomaanaatii2 joined | 03:48 |
| ← hussam left | 03:49 |
| ← Loomaanaatii left | 03:49 |
| Loomaanaatii2 → Loomaanaatii | 03:49 |
| ← snowkidimd left | 03:52 |
| ← DevAntoine left | 03:53 |
| → justanotheruser joined | 03:55 |
| → tmz_ joined | 04:00 |
| ← tmz left | 04:00 |
| → cads2 joined | 04:07 |
| ← nrh^ left | 04:09 |
| → nrh^ joined | 04:10 |
| ← tiin57 left | 04:12 |
| → tiin57 joined | 04:16 |
| ← nrh^ left | 04:17 |
| → nrh^ joined | 04:17 |
| → DevAntoine joined | 04:20 |
| ← drbean_ left | 04:21 |
| ← powerhouse_ left | 04:22 |
| → snowkidimd joined | 04:22 |
| ← DevAntoine left | 04:24 |
| → batrick joined | 04:27 |
| ← shush left | 04:27 |
| ← rangergord left | 04:30 |
| → rangergord joined | 04:33 |
| → segnior joined | 04:34 |
| → ferdna joined | 04:38 |
| → shush joined | 04:40 |
| → lagrange joined | 04:41 |
| ← tiin57 left | 04:43 |
| ← rangergord left | 04:45 |
| ← segnior left | 04:45 |
| Shentino_ → Shentino | 04:45 |
| → tiin57 joined | 04:46 |
| → segnior joined | 04:46 |
| → rangergord joined | 04:47 |
| ← thinkpad left | 04:50 |
| → thinkpad joined | 04:50 |
| → DevAntoine joined | 04:51 |
| ← ferdna left | 04:52 |
| ← Whistler left | 04:53 |
| ← hqdruxn08_ left | 04:54 |
| ← DevAntoine left | 04:56 |
| ← lagrange left | 04:58 |
| ← HumanG33k left | 05:01 |
| → HumanG33k joined | 05:01 |
| ← kyshoc left | 05:08 |
| → kyshoc joined | 05:09 |
| ← kyshoc left | 05:09 |
| → kyshoc joined | 05:09 |
| ← dimi1947 left | 05:10 |
| → hqdruxn08 joined | 05:11 |
| ← durham left | 05:12 |
| ← tiin57 left | 05:12 |
| ← Heirlung left | 05:14 |
| → tiin57 joined | 05:15 |
| → Guest20 joined | 05:17 |
| → Heirlung joined | 05:17 |
| ← austin987 left | 05:19 |
| ← madewokherd left | 05:25 |
| ← chemsmith left | 05:28 |
| ← thiago left | 05:29 |
| → shabius joined | 05:30 |
| → chemsmith joined | 05:30 |
| → ferdna joined | 05:31 |
| ← jimklimov left | 05:32 |
| → austin987 joined | 05:32 |
| → jimklimov joined | 05:34 |
| ← Mmike left | 05:36 |
| ← ferdna left | 05:37 |
| → vorona joined | 05:40 |
| ← AnAverageHuman left | 05:42 |
| ← tiin57 left | 05:42 |
| → FH_thecat joined | 05:43 |
| → royal_screwup21 joined | 05:44 |
| ← Goplat left | 05:44 |
| → crose joined | 05:44 |
| → tiin57 joined | 05:46 |
| ← royal_screwup21 left | 05:48 |
| ← edlou left | 05:58 |
| ← FH_thecat left | 06:03 |
| ← tiin57 left | 06:12 |
| ← sudoforge left | 06:14 |
| → tiin57 joined | 06:16 |
| ← k3yp left | 06:17 |
|
Tabmow
| If I have this sort of checkout - git checkout --progress --force -B feature/branch refs/remotes/origin/feature/branch | 06:21 |
|
| How do I see what has changed since last commit? | 06:22 |
|
| git diff --name-only --exit-code HEAD^ HEAD -- . gives me: fatal: bad revision 'HEAD^' | 06:23 |
| → k3yp joined | 06:26 |
| → DevAntoine joined | 06:26 |
| → sord937 joined | 06:27 |
| → sudoforge joined | 06:27 |
| ← Betal left | 06:27 |
| ← DevAntoine left | 06:31 |
| → john_johnk joined | 06:34 |
| ← Ranhir left | 06:34 |
| → LetoThe2nd joined | 06:37 |
| → xrisovalantis joined | 06:38 |
| ← sozuba left | 06:39 |
| → sozuba joined | 06:41 |
| → guerra joined | 06:42 |
| ← tiin57 left | 06:42 |
|
j416
| Tabmow: what is it that you are actually trying to do? | 06:43 |
| → tiin57 joined | 06:46 |
| ← sozuba left | 06:46 |
| → KnoP joined | 06:47 |
| → sozuba joined | 06:47 |
| → Ranhir joined | 06:48 |
|
Tabmow
| j416: in my github action I need to check if there are any changes to a certain directory. | 06:48 |
|
| I found the issue, the checkout action defaults to fetch-depth 1 so there was no other history :) - Changing it to 2 fixed my issue. | 06:49 |
|
| The error message was throwing me... | 06:49 |
| → lunatic_wei joined | 06:52 |
|
j416
| you don't need checkout for that; diff should be enough | 06:53 |
|
| git diff --exit-code origin/feature/branch^..origin/feature/branch -- . | 06:54 |
| ← raymond left | 06:54 |
|
Tabmow
| j416: true, I need checkout for other things anyway so was just easier to use that until I ran into this slight issue. | 06:56 |
|
j416
| check. | 06:57 |
| → rcoote joined | 06:57 |
| → DevAntoine joined | 06:58 |
| → rfuentess joined | 07:02 |
| ← DevAntoine left | 07:02 |
| → dpl joined | 07:02 |
| ← unluckyshrubbery left | 07:03 |
| → thansen9 joined | 07:07 |
| ← thansen left | 07:07 |
| thansen9 → thansen | 07:07 |
| ← tiin57 left | 07:12 |
| → DevAntoine joined | 07:13 |
| → tiin57 joined | 07:16 |
| → bolovanos joined | 07:16 |
| → Haohmaru joined | 07:25 |
| → otisolsen70 joined | 07:25 |
| → fandre1986 joined | 07:26 |
| ← Guest20 left | 07:26 |
| ← sudoforge left | 07:28 |
| ← xissburg left | 07:33 |
| → Ignacio joined | 07:34 |
| → Guest20 joined | 07:34 |
| → sudoforge joined | 07:36 |
| ← howdoi left | 07:36 |
| ← shush left | 07:39 |
| → jimmiehansson joined | 07:40 |
| ← tiin57 left | 07:42 |
| ← mw_ left | 07:42 |
| → mw_ joined | 07:43 |
| ← DevAntoine left | 07:44 |
| → tiin57 joined | 07:45 |
| ← Mattiasl_ left | 07:46 |
| ← rednplueplaid96 left | 07:48 |
| → rednplueplaid96 joined | 07:49 |
| → powerhouse joined | 07:49 |
| ← fandre1986 left | 07:49 |
| → vorona1 joined | 07:50 |
| ← vorona left | 07:51 |
| → DevAntoine joined | 07:51 |
| → wrobinso1 joined | 07:52 |
| → accesspoint joined | 07:53 |
| → Aquazi joined | 07:53 |
| ← wrobinson left | 07:54 |
| ← rednplueplaid96 left | 07:55 |
| → rednplueplaid96 joined | 07:56 |
| ← CryptoClub left | 07:58 |
| ← InfiniteZero_ left | 07:59 |
| → CryptoClub joined | 08:00 |
| ← [twisti] left | 08:01 |
| ← duderonomy left | 08:10 |
| ← ghost43 left | 08:10 |
| → ghost43 joined | 08:11 |
| → duderonomy joined | 08:12 |
| ← tiin57 left | 08:12 |
| ← accesspoint left | 08:14 |
| → stats4647 joined | 08:14 |
| → tiin57 joined | 08:15 |
| ← Ignacio left | 08:16 |
| → Ignacio joined | 08:16 |
| ← stats4647 left | 08:18 |
| → PCatinean joined | 08:18 |
|
PCatinean
| Hi all | 08:18 |
|
osse
| Hi one | 08:19 |
| → cd joined | 08:22 |
|
PCatinean
| XD | 08:23 |
|
| PCatinean giggles | 08:23 |
|
PCatinean
| I was wondering if I could get an idea on how to solve an issue. My purpose is to check version numbers in a python project that has modules which contains __manifest__.py which contain dictionaries and have a "version" inside. I want to do a pipeline which compares the versions and if the version of the change is <= version being merged into then fail. | 08:25 |
| → lbracher joined | 08:25 |
|
PCatinean
| There are several ways to approach this, checking the diff directly or just getting the data from current branch and the brach merged into | 08:25 |
|
| Not sure if there's some git functionality that would make this easier | 08:25 |
| ← Muimi left | 08:27 |
|
osse
| sounds like git grep to me | 08:28 |
| → krofe joined | 08:31 |
|
PCatinean
| git diff and grep pipe? | 08:32 |
| ← mat001 left | 08:33 |
| → amahl joined | 08:35 |
| ← sudoforge left | 08:37 |
|
osse
| I personally would get all the versions from master, the versions from the other branch, and then compare one by one | 08:38 |
|
PCatinean
| I need to compare just changed ones though | 08:40 |
|
| And exclude other files which are not python modules like ".gitlab-ci.yaml" / README.MD etc | 08:40 |
| ← lunatic_wei left | 08:41 |
| → ARoxdale joined | 08:42 |
| → jimklimov1 joined | 08:42 |
| ← opal left | 08:42 |
|
osse
| of course | 08:42 |
| ← tiin57 left | 08:42 |
|
PCatinean
| and with current branch I can do a regular python import which makes it ezpz but for the other I would have to...checkout? | 08:43 |
|
osse
| git gives you git diff and git diff --name-only and git grep, all of which can be filtered by filenames. | 08:43 |
|
| But you have to glue them together yourself. git does not give you git version-cmp | 08:43 |
|
PCatinean
| yeah that's the route I have so far, git diff --name-only | 08:43 |
|
| oh there's an actual git grep nice, not piping grep on git diff | 08:44 |
| ← jimklimov left | 08:44 |
| → tiin57 joined | 08:46 |
| ← reen left | 08:48 |
| → reen joined | 08:48 |
| → PJBoy joined | 08:52 |
|
PCatinean
| this is way better, thank you for the great tip osse | 08:53 |
| → unluckyshrubbery joined | 08:53 |
| → royal_screwup21 joined | 08:55 |
| → accesspoint joined | 08:55 |
| → mozgalom joined | 08:56 |
| → gearnode joined | 08:57 |
| → calcul0n_ joined | 08:58 |
| ← kadobanana left | 09:00 |
| ← royal_screwup21 left | 09:00 |
| ← wallacer left | 09:01 |
| ← Shentino left | 09:03 |
| → wallacer joined | 09:04 |
| → Shentino joined | 09:04 |
| ← tiin57 left | 09:12 |
| → tiin57 joined | 09:16 |
| ← otisolsen70 left | 09:16 |
| → fstd_ joined | 09:18 |
| → jast joined | 09:18 |
| ← fstd left | 09:18 |
| fstd_ → fstd | 09:18 |
| → Deknos joined | 09:21 |
|
Deknos
| hey, can someone with git 1.8 and git 2.20 work on the same repository without getting conflicts? or are there some backwards incompatibilities in the last years since 1.8? (i am aware, 1.8 is OLD) | 09:22 |
|
| asking for a friend (no, really :D) | 09:22 |
| → Mattiaslndstrm joined | 09:22 |
| ← hnOsmium0001 left | 09:25 |
| → igopi joined | 09:27 |
| → solarjoe4 joined | 09:27 |
| gitinfo set mode: +v | 09:27 |
| → Rashad joined | 09:28 |
|
igopi
| is the any project that actually rewriting git into python? | 09:29 |
|
| *there | 09:29 |
| ← jetchisel left | 09:30 |
| ← Rashad left | 09:33 |
| → Rashad joined | 09:34 |
| ← lawt left | 09:36 |
|
osse
| Deknos: no problems | 09:38 |
|
| Deknos: some defaults have changed and stuff. but the underlying data structures and all that is exactly the same | 09:38 |
| ← nutron left | 09:41 |
| ← cd left | 09:42 |
| ← tiin57 left | 09:42 |
| → royal_screwup21 joined | 09:43 |
| ← jaziz1 left | 09:44 |
| → tiin57 joined | 09:45 |
| → tm007 joined | 09:46 |
|
Deknos
| thank you! is this also valid for later versions than 2.20? like up to 2.30? | 09:47 |
| ← gigasu_shida left | 09:49 |
|
osse
| yep | 09:50 |
| → jetchisel joined | 09:52 |
| → TheMeltdown joined | 10:03 |
| TheMeltdown → Guest93189 | 10:03 |
| ← Guest84395 left | 10:04 |
| ← heftig left | 10:06 |
| ← elibrokeit left | 10:06 |
| ← rcoote left | 10:08 |
| → heftig joined | 10:11 |
| → elibrokeit joined | 10:11 |
| → opal joined | 10:11 |
| ← gearnode left | 10:12 |
| ← tiin57 left | 10:12 |
| ← Rashad left | 10:14 |
| → Rashad joined | 10:15 |
| ← opal left | 10:15 |
| → tiin57 joined | 10:15 |
| → opal joined | 10:16 |
| ← igopi left | 10:18 |
| → gearnode joined | 10:19 |
| → zebrag joined | 10:21 |
| ← royal_screwup21 left | 10:22 |
| → royal_screwup21 joined | 10:23 |
|
CustosLimen
| hi, are there alternatives to this: https://pre-commit.com/ ? | 10:24 |
| ← sozuba left | 10:24 |
| → sozuba joined | 10:27 |
|
osse
| you can always put any logic you want into .git/hooks/pre-commit | 10:27 |
| → igopi joined | 10:31 |
|
CustosLimen
| yes but everyone has to do it by themselves then | 10:32 |
|
| pre-commit manages this for you | 10:32 |
|
osse
| Not completely automatically. Each person still has to run "pre-commit install", right? | 10:35 |
|
| Anyway, I don't know of an alternative to this with this feature set | 10:35 |
|
CustosLimen
| yes you still have to do that | 10:40 |
| ← codebam left | 10:40 |
| ← tiin57 left | 10:42 |
| → computeiro joined | 10:43 |
| ← igopi left | 10:44 |
| → tiin57 joined | 10:45 |
| ← sozuba left | 10:46 |
| → sozuba joined | 10:48 |
|
nedbat
| CustosLimen: why did you want alternatives? | 10:49 |
|
CustosLimen
| don't want to use it if there is something better, not that there is something wrong with it, but it is all I know about | 10:49 |
| ← krofe left | 11:00 |
|
nedbat
| CustosLimen: i see | 11:00 |
| ← Rashad left | 11:10 |
| ← igemnace left | 11:12 |
| ← tiin57 left | 11:12 |
| ← wallacer left | 11:14 |
| → wallacer joined | 11:15 |
| → tiin57 joined | 11:16 |
| ← vorona1 left | 11:20 |
| → planetcall|work joined | 11:21 |
| → segurb joined | 11:23 |
| ← sozuba left | 11:23 |
| ← royal_screwup21 left | 11:23 |
| → royal_screwup21 joined | 11:23 |
|
segurb
| hi everyone, suddenly all my git repos, even the one with 5 files in it, is terribly slow on git pull, it takes like 5 minutes to check and have no changes at all, using bitbucket as remote, and it doesnt seem to have issues | 11:23 |
|
| any way I can trace/debug this issue? | 11:23 |
| ← royal_screwup21 left | 11:28 |
|
osse
| segurb: GIT_TRACE=1 git pull | 11:29 |
|
| sounds like suddenly your internet is slow | 11:29 |
| ← justanotheruser left | 11:32 |
| ← Guest20 left | 11:34 |
|
segurb
| osse: 200/20 internet aint slow at all | 11:34 |
|
osse
| That's not what I meant | 11:35 |
|
segurb
| osse: https://0x0.st/-c7X.jpg | 11:35 |
| ← hololeap left | 11:36 |
|
segurb
| its just stuck on that step | 11:36 |
| → hololeap joined | 11:36 |
|
osse
| try 'ssh -T [email@hidden.address] | 11:36 |
| ← meropyri left | 11:36 |
| → shush joined | 11:37 |
|
segurb
| with git trace or? | 11:37 |
|
| because it just hangs | 11:37 |
|
osse
| not with git trace. just plain ssh | 11:37 |
|
| ok, we're getting somewhere | 11:37 |
|
segurb
| just hangs | 11:37 |
|
osse
| time to be verbose AF | 11:37 |
|
| ssh -vvvT [email@hidden.address] | 11:38 |
|
segurb
| https://0x0.st/-c7P.jpg | 11:38 |
| → meropyri joined | 11:38 |
| ← hethw left | 11:39 |
| → hethw joined | 11:39 |
|
osse
| ok then | 11:39 |
|
| ssh -4T [email@hidden.address] | 11:39 |
|
segurb
| You can use git to connect to Bitbucket. Shell access is disabled | 11:40 |
|
| before that it says logged in as <myusername> | 11:40 |
| → sweatsuit_ joined | 11:40 |
|
osse
| there we go | 11:40 |
|
| Seems like something somewhere between your computer and bitbucket's server doesn't like IPv6 | 11:40 |
|
segurb
| nothing changed, except I havent used this PC for 10 days | 11:41 |
|
osse
| try this: GIT_SSH_COMMAND='ssh -4' git pull | 11:41 |
|
segurb
| worked like a charm before that | 11:41 |
| ← shush left | 11:41 |
|
segurb
| osse: that worked really fasty | 11:41 |
| ← sweatsuit left | 11:41 |
| sweatsuit_ → sweatsuit | 11:41 |
|
segurb
| what is ssh -4? | 11:42 |
|
osse
| force IPv4 | 11:42 |
| ← tiin57 left | 11:42 |
| → drag0nius joined | 11:43 |
|
drag0nius
| how can i set username and password for a single repository only? | 11:43 |
|
| i found git config credential.origin.username | 11:43 |
|
| what would be equivalent for password? | 11:44 |
|
segurb
| osse: I assume I can set 4 as global for git untill I find whats up with 6? | 11:45 |
|
osse
| you can do it in .ssh/config for example | 11:46 |
| → tiin57 joined | 11:46 |
| ← FFY00_ left | 11:46 |
| → FFY00_ joined | 11:46 |
|
osse
| or git config --global core.sshCommand 'ssh -4' | 11:46 |
|
segurb
| its a global issue on my machine | 11:46 |
| → Muimi joined | 11:46 |
|
segurb
| osse:thank you very much | 11:47 |
|
| atleast a temp fix so I can work | 11:47 |
|
| and Il play with the 6 on weekend | 11:47 |
|
| thanks ! | 11:47 |
| ← led_belly left | 11:48 |
| ← zebrag left | 11:52 |
| → rcoote joined | 11:52 |
| → zebrag joined | 11:52 |
| → rsx joined | 11:55 |
| → led_belly joined | 11:56 |
| → royal_screwup21 joined | 11:57 |
| ← drag0nius left | 11:59 |
| ← royal_screwup21 left | 12:02 |
| ← nrh^ left | 12:04 |
| → rapiz joined | 12:05 |
| ← tm007 left | 12:05 |
| ← tiin57 left | 12:12 |
| → dsrt^ joined | 12:15 |
| → stats4647 joined | 12:15 |
| ← rcoote left | 12:15 |
| → tiin57 joined | 12:16 |
| → royal_screwup21 joined | 12:17 |
| ← stats4647 left | 12:19 |
| → cdown joined | 12:19 |
| ← rustyshackleford left | 12:20 |
| → viko joined | 12:23 |
| → jim87 joined | 12:24 |
|
jim87
| Hello! Is there a way to clone a repository with all the tags, but without downloading all the changes? My use-case is to be able to get a list of tags of a repository, I don't need the sources themselves | 12:25 |
| seanBE_ → seanBE | 12:27 |
| → kenanmarasli joined | 12:29 |
| → Anticom joined | 12:30 |
|
osse
| git clone --filter=... I think | 12:32 |
|
| if you only need tags I would rather investigate some sort of API | 12:32 |
| → cdown_ joined | 12:33 |
| → bremner joined | 12:34 |
| → calcul0n__ joined | 12:34 |
|
jim87
| osse: by API you mean vendor-specific git server APIs? | 12:34 |
|
bremner
| if you really just want the list of tags, you can use git-ls-remote | 12:34 |
|
jim87
| bremmer: I was looking into it indeed | 12:35 |
| ← cdown left | 12:35 |
| cdown_ → cdown | 12:35 |
| ← yawkat left | 12:35 |
| ← calcul0n_ left | 12:36 |
| ← snowkidimd left | 12:39 |
| → royal_screwup215 joined | 12:39 |
| ← tiin57 left | 12:42 |
| → rosco_y joined | 12:43 |
| → snowkidimd joined | 12:44 |
| → tiin57 joined | 12:45 |
| ← sgn left | 12:46 |
| → sgn joined | 12:47 |
| → rafasc joined | 12:47 |
| → CodeSlingerPaul joined | 12:48 |
| → xgfvc joined | 12:49 |
| ← snowkidimd left | 12:49 |
| ← sgn left | 12:49 |
| → AnAverageHuman joined | 12:50 |
| → sgn joined | 12:50 |
| ← royal_screwup21 left | 12:50 |
| ← royal_screwup215 left | 12:50 |
| → kalin_ joined | 12:51 |
| → royal_screwup21 joined | 12:51 |
| ← kenanmarasli left | 12:51 |
| ← zebrag left | 12:52 |
| → xlei joined | 12:52 |
| → zebrag joined | 12:52 |
| ← kalin___ left | 12:53 |
| ← cads2 left | 12:55 |
| ← royal_screwup21 left | 12:55 |
| → Betal joined | 12:56 |
| → royal_screwup21 joined | 12:58 |
|
osse
| jim87: yes | 12:59 |
|
| but ls-remote might be even better. I keep forgetting it exists | 12:59 |
| → finalbeta joined | 13:07 |
| → Duikb00t joined | 13:07 |
|
Duikb00t
| Hello | 13:07 |
| → miczac joined | 13:08 |
|
Duikb00t
| My main project has a .gitignore file. In the project I can go to storage/app/public/.gitignore | 13:08 |
|
| By default: storage is set to not-tracked in the main .gitignore file. | 13:08 |
|
| But I want to track 1 folder in that public folder ( name: static ) So I added !static into the gitignore inside the public directory. But nothing seems to get tracked. Where am I going wrong? | 13:09 |
|
| Thanks! | 13:09 |
|
osse
| the directory storage is ignored completely, so git won't even recurse into it to check for further .gitignore files | 13:10 |
|
| lI think you need to do this in the outer gitignore: | 13:11 |
|
| storage/* | 13:11 |
|
| !storage/app | 13:11 |
|
Duikb00t
| Currently: /public/storage = in .gitignore ( the main one) (outer) | 13:11 |
|
| Sorry | 13:11 |
|
| Currently: /storage/*.key = in .gitignore ( the main one) (outer) | 13:12 |
| → bsanford joined | 13:12 |
| ← tiin57 left | 13:12 |
| ← daurnimator left | 13:12 |
| ← bsanford left | 13:13 |
| → tiin57 joined | 13:15 |
| ← Xenguy left | 13:16 |
|
osse
| !gitignore_whitedir | 13:16 |
|
gitinfo
| A global/directory .gitignore blacklist with a (potentially) subdirectory whitelist is not easy to specify in git. However, something like `printf '%s\n' '/*' '!/a/' '/a/*' '!/a/b/' '/a/b/*' '!/a/b/c/' > .gitignore` (ignore everything but a/b/c directory) or `printf '%s\n' '*' '!*/' '!*.txt' > .gitignore` (ignore everything but *.txt files) may do what you want. | 13:16 |
| → yawkat joined | 13:17 |
| ← xgfvc left | 13:21 |
| → royal_screwup217 joined | 13:25 |
| → xgfvc joined | 13:25 |
|
Duikb00t
| Not easy. | 13:25 |
|
| I tought: !storage/app/public/static would fix it. | 13:25 |
|
osse
| you need to unignore app, then unignore public, then unignore static | 13:29 |
|
| if the files are truly static you can simply: git add -f storage/app/public/static | 13:29 |
|
rafasc
| that unignores the 'static' file. But since storage is ignored, git never looks what is inside. | 13:29 |
|
osse
| but you need to use -f to add new files inside that dir | 13:29 |
| → mat001 joined | 13:30 |
|
Duikb00t
| I fixe dit | 13:30 |
|
| yeah | 13:30 |
|
lmat
| I am rebasing and I see conflicts. I have been working to resolve them, but went too far. How can I get the original conflicts back? | 13:31 |
|
Duikb00t
| Graet | 13:32 |
|
| Thanks osse and rafasc | 13:32 |
|
rafasc
| storage/*; !/storage/app; /storage/app/*; !/storage/app/public; /storage/app/public/*; !/storage/app/public/static; | 13:32 |
|
| you would need something like the above, but probably a good candidate for add -f as osse mentioned. | 13:32 |
| → muhaha joined | 13:32 |
| ← rapiz left | 13:33 |
|
rafasc
| lmat: probably: git checkout -m <path-to-file>; | 13:34 |
| → shush joined | 13:37 |
| → daurnimator joined | 13:38 |
| ← tiin57 left | 13:42 |
| ← shush left | 13:42 |
|
planetcall|work
| Anyone familiar with `gitversion` ? I am curious how does it maintain state? | 13:44 |
|
rafasc
| what is gitversion? | 13:44 |
|
| this: https://github.com/GitTools/GitVersion? | 13:45 |
| → tiin57 joined | 13:46 |
| → hussam joined | 13:46 |
|
planetcall|work
| rafasc, yes | 13:49 |
|
rafasc
| I think it is the first time I stumble over this. And just reading the intro, there are things that I already dislike about it. :D | 13:51 |
|
| E.g. don't tell me how I should name my own remotes: https://gitversion.net/docs/learn/git-setup | 13:52 |
| ← zebrag left | 13:52 |
| → zebrag joined | 13:52 |
| → budonyc joined | 13:56 |
| _flow_ → flow | 13:56 |
|
lmat
| rafasc: Ahh, thanks! | 13:57 |
|
planetcall|work
| I think it elegantly solves the issue of versioning the binaries | 13:57 |
| → vimIsJustBest joined | 13:59 |
|
rafasc
| planetcall|work: from the looks of it, seems like they keep state on their own config files? | 13:59 |
|
planetcall|work
| rafasc, not really. It actually is deriving the state from commits and tags somehow | 14:00 |
|
| it does have a config file in yml format which guides us which strategy to use along with other defaults. | 14:01 |
|
rafasc
| then it probably does it on the fly, like git describe would do it. | 14:01 |
|
planetcall|work
| it seems so. I don't have a complete grasp on it. I guess I will have to dig deeper. | 14:01 |
|
rafasc
| I looked briefly at: git log --no-walk --tags -p; and so next-version: | 14:01 |
|
| But seems that was in a test file. | 14:02 |
| ← royal_screwup21 left | 14:02 |
| → royal_screwup21 joined | 14:03 |
| ← thansen left | 14:04 |
| → madewokherd joined | 14:05 |
| ← hethw left | 14:05 |
| → vorona1 joined | 14:05 |
| ← axisys left | 14:06 |
|
rafasc
| "the tag is used and build metadata (excluding commit count) is added" | 14:06 |
|
| added where? | 14:06 |
| → thansen joined | 14:07 |
| ← tiin57 left | 14:12 |
| ← CryptoClub left | 14:15 |
| → tiin57 joined | 14:15 |
| → CryptoClub joined | 14:17 |
| → rcoote joined | 14:18 |
| → rapiz joined | 14:21 |
| ← royal_screwup217 left | 14:22 |
| ← royal_screwup21 left | 14:22 |
| → royal_screwup21 joined | 14:23 |
| ← solarjoe4 left | 14:24 |
| ← rapiz left | 14:25 |
| → DevAntoi_ joined | 14:26 |
| ← elichai2 left | 14:27 |
| ← royal_screwup21 left | 14:27 |
| ← DevAntoine left | 14:29 |
|
planetcall|work
| to the version | 14:33 |
| → thiago joined | 14:37 |
| → snowkidi_ joined | 14:38 |
| → arcatech joined | 14:39 |
| → rustyshackleford joined | 14:40 |
| → royal_screwup21 joined | 14:41 |
| ← thansen left | 14:41 |
| → thansen joined | 14:41 |
| ← tiin57 left | 14:42 |
| → tiin57 joined | 14:45 |
| → stats4647 joined | 14:45 |
| ← zebrag left | 14:52 |
| → zebrag joined | 14:52 |
| ← royal_screwup21 left | 14:53 |
| → royal_screwup21 joined | 14:53 |
| ← royal_screwup21 left | 14:58 |
| → RaIn joined | 14:58 |
| → henri joined | 14:59 |
| → mowcat joined | 15:00 |
| ← RaIn left | 15:00 |
| → noobcoder joined | 15:01 |
| ← noobcoder left | 15:01 |
| → noob-RAIN joined | 15:02 |
| ← snowkidi_ left | 15:03 |
| → snowkidimd joined | 15:03 |
| ← noob-RAIN left | 15:03 |
| → airgap joined | 15:06 |
| → hnOsmium0001 joined | 15:08 |
| → maroloccio joined | 15:11 |
| ← Serus left | 15:11 |
| ← tiin57 left | 15:12 |
| ← rcoote left | 15:12 |
| ← austin987 left | 15:15 |
| → tiin57 joined | 15:16 |
| ← arcatech left | 15:16 |
| → Serus joined | 15:17 |
| ← xrisovalantis left | 15:21 |
| ← miczac left | 15:22 |
| ← mingdao left | 15:22 |
| → miczac joined | 15:23 |
| → kadobanana joined | 15:25 |
| → austin987 joined | 15:29 |
|
cYmen
| when I create a repo with init --bare --shared=all I get sharedrepository=2 if I git config core.sharedRepository all I get sharedRepository=all ...is this a bug or what is going on here? | 15:30 |
| → royal_screwup21 joined | 15:31 |
| ← haymawk left | 15:32 |
| → haymawk joined | 15:34 |
| ← royal_screwup21 left | 15:35 |
| → mindCrime_ joined | 15:36 |
| → shush joined | 15:38 |
| → causasui joined | 15:38 |
| → sgn1 joined | 15:39 |
| ← miczac left | 15:39 |
| ← sgn left | 15:40 |
|
rafasc
| I get sharedrepository=2, but it should be fine. | 15:41 |
| ← tiin57 left | 15:42 |
| → howdoi joined | 15:43 |
|
rafasc
| https://github.com/git/git/blob/a0dda6023ed82b927fa205c474654699a5b07a82/t/t1301-shared-repo.sh#L48-L53 | 15:43 |
|
| and there's a test for it, confirming 2=all. | 15:43 |
| ← shush left | 15:44 |
| → shush joined | 15:44 |
|
rafasc
| But seems this isn't documented anywhere, might be worth looking the mailing list if someone already asked about it and if not, maybe ask. | 15:45 |
| → tiin57 joined | 15:45 |
| → arcatech joined | 15:46 |
| → LuxuryMode joined | 15:46 |
| → miczac joined | 15:47 |
| → sudoforge joined | 15:48 |
| → linuxguru joined | 15:48 |
| ← stats4647 left | 15:49 |
| ← sebas057 left | 15:51 |
| ← sagagnon40 left | 15:51 |
| ← zebrag left | 15:52 |
| ← mantisfan left | 15:52 |
| ← mr_francois3 left | 15:52 |
| ← pcarphin left | 15:52 |
| → zebrag joined | 15:52 |
| → mantisfan joined | 15:52 |
| → mr_francois3 joined | 15:54 |
| → sebas057 joined | 15:54 |
| → pcarphin joined | 15:54 |
| → sagagnon40 joined | 15:54 |
| → olx69 joined | 15:57 |
| ← long4mud left | 15:59 |
| → Newami joined | 15:59 |
| ← mindCrime_ left | 15:59 |
| ← ghoti left | 16:03 |
| → axisys joined | 16:06 |
| → durham joined | 16:06 |
| → nutron joined | 16:07 |
| ← miczac left | 16:09 |
| ← Newami left | 16:11 |
| → ubuntu joined | 16:12 |
| ubuntu → Guest56346 | 16:12 |
| ← tiin57 left | 16:12 |
| ← sebas057 left | 16:12 |
| ← mr_francois3 left | 16:12 |
| ← pcarphin left | 16:12 |
| ← sagagnon40 left | 16:12 |
| → Newami joined | 16:13 |
|
Guest56346
| Hi, is it possible for git log -- somepath/ to list all logs under some/path or any symlink it may have which is behind somepath/ ? | 16:13 |
| ← muhaha left | 16:15 |
| → nyxyn joined | 16:15 |
|
maroloccio
| On a flaky network I am having trouble cloning a bit repo. Is there a "resumable" clone option? | 16:16 |
| → tiin57 joined | 16:16 |
|
rafasc
| Guest56346: you want the pattern to match somepath/* where * are symbolic links? | 16:16 |
|
Guest56346
| somepath/ may contains symlinks to other directories before somepath/ | 16:17 |
|
rafasc
| maroloccio: clone with --depth=1; then progressively fetch it with git fetch --deepen=N; | 16:17 |
|
| followed by a final git fetch --unshallow | 16:18 |
|
maroloccio
| trying.. thanks rafasc | 16:18 |
| ← durham left | 16:19 |
| → durham joined | 16:19 |
| → mellernoia joined | 16:21 |
| ← henri left | 16:21 |
| → ghoti joined | 16:21 |
|
maroloccio
| rafasc: working beatifully. thank you *very much*! :) | 16:23 |
| ← Haohmaru left | 16:23 |
| → Guest20 joined | 16:25 |
| → rcoote joined | 16:26 |
| ← vimIsJustBest left | 16:28 |
| → Psyh joined | 16:29 |
| ← nyxyn left | 16:30 |
| ← Psyh left | 16:31 |
| ← maroloccio left | 16:31 |
| ← Newami left | 16:31 |
| → maroloccio joined | 16:35 |
| → modonnell joined | 16:37 |
| → xissburg joined | 16:38 |
| ← KnoP left | 16:41 |
| ← tiin57 left | 16:42 |
| ← modonnell left | 16:43 |
| ← Duikb00t left | 16:44 |
| → emanuele6 joined | 16:45 |
| → tiin57 joined | 16:46 |
| ← planetcall|work left | 16:47 |
| ← maroloccio left | 16:47 |
| ← Anticom left | 16:50 |
| → Duikb00t joined | 16:51 |
| → long4mud joined | 16:51 |
| ← rfuentess left | 16:52 |
| → mokulus joined | 16:52 |
| → stats4647 joined | 16:53 |
| ← Duikb00t left | 16:55 |
| ← mantisfan left | 16:56 |
| → mantisfan joined | 16:56 |
| ← wrobinso1 left | 17:01 |
| → wrobinson joined | 17:01 |
| → Hatmad joined | 17:01 |
| ← PCatinean left | 17:02 |
| ← gordonfish left | 17:03 |
| ← Hatmad left | 17:04 |
| ← irrgit left | 17:06 |
| ← Muimi left | 17:06 |
| ← snowkidimd left | 17:06 |
| → fulsiram joined | 17:07 |
|
astronavt
| is there a way to tell git-read-tree to just overwrite any existing files? | 17:08 |
|
| i'm trying to synchronize a subdirectory of a remote repo (that i do not control) with some files in my project's repo | 17:08 |
|
| but if the files already exist, git-read-tree complains and quits. the docs just say that it will refuse to overwrite anything... | 17:09 |
| → julius_ joined | 17:09 |
|
julius_
| gi | 17:09 |
| → irrgit joined | 17:09 |
|
julius_
| hi | 17:09 |
|
astronavt
| if there's no way to do it, is there a workaround? | 17:09 |
| → snowkidimd joined | 17:09 |
|
astronavt
| i don't want to have to make 2 commits if i can avoid it | 17:09 |
|
julius_
| i typed: git rm -r --cached syncserver/.* and i got a list of my complete git repository, somehow the * was not used inside the syncserver/ directory but on the root of my git | 17:10 |
|
| how do i undo that action? | 17:10 |
| ← ghoti left | 17:10 |
|
astronavt
| julius_: if you haven't committed yet, you can do `git reset` to undo staged changes | 17:11 |
|
julius_
| lets try | 17:11 |
|
| ok apparently that worked, thanks | 17:11 |
| ← mokulus left | 17:12 |
| ← tiin57 left | 17:12 |
| → maroloccio joined | 17:13 |
|
rafasc
| julius_: maybe you used an extra space? like syncserver/. * ? | 17:13 |
|
| because that shouldn't apply to the whole repo. | 17:14 |
| → Duikb00t joined | 17:14 |
| ← maroloccio left | 17:14 |
|
julius_
| i may have done something more, git pull tells me that "the following untracked working tree files would be overwritten by merge" python/icap/ but i already git: git add python && git commit -am 'update' | 17:14 |
|
| rafasc, yes with a extra space that would make sense...but there wasnt one | 17:15 |
|
rafasc
| astronavt: are you using -m ? Or one the similar options. | 17:15 |
|
astronavt
| rafasc: i am using `git read-tree -u --prefix=myrepo/foo-data/external remotes/something/master:assets/data` | 17:16 |
| → tiin57 joined | 17:16 |
| → royal_screwup21 joined | 17:17 |
|
astronavt
| if i use -m instead, will that solve the problem? | 17:17 |
|
rafasc
| astronavt: depends on the definition of "problem". I think either --reset or -m, so you get the chance to solve conflicts. | 17:18 |
|
astronavt
| it looks like --prefix and -m are incompatible | 17:18 |
|
rafasc
| probably smart to do a quick backup, if you have pending files. | 17:18 |
|
astronavt
| if there is a way to just "dump a specific tree from a remote into my work tree" i'd be happy to use that | 17:19 |
|
| git-read-tree was the only way i knew how | 17:19 |
| ← rsx left | 17:19 |
|
astronavt
| the full problem statement would be: "dump a specific tree from a remote into a my work tree, with a prefix that i choose" | 17:20 |
|
| the git repo happens to be hosted on github so as a workaround i can just use the "raw" github api | 17:20 |
| → iffraff_ joined | 17:20 |
|
astronavt
| i admittedly dont understand what an "unmerged entry" is in this context, as per the docs | 17:21 |
|
rafasc
| it essentially means conflicts. | 17:22 |
| ← Xiti left | 17:23 |
| ← hussam left | 17:23 |
| → Xiti joined | 17:23 |
| → justanotheruser joined | 17:24 |
| → hussam joined | 17:24 |
|
rafasc
| astronavt: try this: | 17:25 |
|
| git read-tree --index-output=myindex <treeid>; GIT_INDEX_FILE=myindex git checkout-index --prefix=something/ -a | 17:26 |
| ← mozgalom left | 17:27 |
| ← guerra left | 17:27 |
|
rafasc
| you may want to need to add --force to overwrite existing files. | 17:27 |
|
| backup and try I guess :) | 17:27 |
|
astronavt
| so this writes to a different index file, which you then checkout from? | 17:27 |
|
| interesting | 17:27 |
| → fax joined | 17:28 |
|
rafasc
| astronavt: that's the idea, yes. | 17:28 |
| ← mns left | 17:29 |
| → JaseW joined | 17:29 |
|
astronavt
| alright, i ended up manually updating this time but i will try it. thanks | 17:31 |
| → hidedagger joined | 17:32 |
| ← fulsiram left | 17:34 |
| → fulsiram joined | 17:34 |
|
astronavt
| rafasc: do you know if i can read multiple trees to the same index file? | 17:34 |
|
| e.g. git read-tree --index-output=myindex tree1 ; git read-tree --index-output=myindex tree2 | 17:35 |
| → tang^ joined | 17:35 |
|
astronavt
| or does read-tree let me write: git read-tree --index-output=myindex tree1 tree2 | 17:35 |
|
rafasc
| you should be able to, you would have to use a different --prefix for each subtree. | 17:35 |
| ← Ignacio left | 17:36 |
|
rafasc
| like git read-tree --prefix=subtree1/ tree1; git read-tree --prefix=subtree2/ tree2; | 17:36 |
|
astronavt
| in my case the subtrees go to the same prefix | 17:36 |
|
rafasc
| you want to overlay them? | 17:37 |
|
astronavt
| no, not that fancy. in the remote they are something like data/a, data/b. in my repo they are something like stuff/testdata/a and stuff/testdata/b | 17:37 |
|
| oh i think i see | 17:38 |
|
| i'll experiment | 17:38 |
|
rafasc
| git read-tree --prefix stuff/testdata/a <treeid of data/a>; same for b. Then you can just checkout from the index. | 17:39 |
|
| git rev-parse <branch>:<path>; should get you the treeid you want. | 17:40 |
|
| can't remember if read-tree resolves things like master:Documentation as tree id. | 17:41 |
| ← tiin57 left | 17:42 |
| → vicfred joined | 17:42 |
| → vicfred_ joined | 17:44 |
| ← amerlyq left | 17:45 |
| → mns joined | 17:45 |
| → tiin57 joined | 17:46 |
| → Tweth-U-PDS joined | 17:46 |
| ← royal_screwup21 left | 17:46 |
| → royal_screwup21 joined | 17:47 |
| ← vicfred left | 17:47 |
| → krofe joined | 17:48 |
| → mindCrime_ joined | 17:50 |
| ← Guest20 left | 17:50 |
| ← zebrag left | 17:52 |
| ← royal_screwup21 left | 17:52 |
| → zebrag joined | 17:52 |
| → gast0n joined | 17:54 |
| ← mns left | 17:57 |
|
astronavt
| rafasc: it does resolve names like that, i had it in my previous script (which is the one that had the "overlap" problem) | 17:57 |
|
rafasc
| you could probably do a "rm --cached -r <path>" before that, to empty whatever is there first. | 17:59 |
| → klonn joined | 18:00 |
|
rafasc
| could be easier than dealing with temporary index files. | 18:00 |
| ← jab416171 left | 18:00 |
| ← vicfred_ left | 18:00 |
| → Narrat joined | 18:04 |
|
astronavt
| oh thats a good poitn too | 18:05 |
|
| point* | 18:05 |
|
| thats a lot easier. i can move the files to an untracked backup location first | 18:05 |
| ← lbracher left | 18:06 |
|
rafasc
| or depending how you access the remote, doing a sparse clone and just move the files manually. | 18:07 |
|
| many ways to go about it. | 18:08 |
| → rond_ joined | 18:08 |
| ← vorona1 left | 18:10 |
| ← tiin57 left | 18:12 |
| → ghoti joined | 18:12 |
| ← Tweth-U-PDS left | 18:14 |
| → Tweth-U-PDS joined | 18:14 |
| ← jetchisel left | 18:15 |
| → tiin57 joined | 18:16 |
| → madewokherd` joined | 18:17 |
| ← madewokherd left | 18:18 |
| ← sgn1 left | 18:18 |
| → royal_screwup21 joined | 18:20 |
| → lukedashjr joined | 18:23 |
| ← snowkidimd left | 18:24 |
| ← royal_screwup21 left | 18:24 |
| ← luke-jr left | 18:25 |
| → snowkidi_ joined | 18:26 |
| ← CryptoClub left | 18:27 |
| → gigasu_shida joined | 18:27 |
| lukedashjr → luke-jr | 18:28 |
| → CryptoClub joined | 18:30 |
| → royal_screwup21 joined | 18:35 |
| ← tiin57 left | 18:42 |
| → drag0nius joined | 18:42 |
| ← drag0nius left | 18:42 |
| → grym joined | 18:44 |
| ← DevAntoi_ left | 18:45 |
|
grym
| i like using `git shortlog previous-tag..HEAD` to make changelog drafts, but I often want the entire commit message, not just the first line. how might i go about getting that format? | 18:45 |
|
| s/changelog/release notes | 18:46 |
|
ikke
| --format "%b" | 18:46 |
| → DevAntoine joined | 18:46 |
| ← royal_screwup21 left | 18:46 |
| → tiin57 joined | 18:46 |
| → royal_screwup21 joined | 18:46 |
|
grym
| "fatal: ambiguous argument '%b': unknown revision or path not in the working tree." | 18:47 |
|
| shortlog doesn't even have --format; log does, but produces that output | 18:48 |
|
ikke
| --format="%b"? | 18:48 |
|
| man git short-log | 18:48 |
|
gitinfo
| the git manpage is available at https://gitirc.eu/git.html | 18:48 |
|
ikke
| man git shortlog | 18:48 |
|
gitinfo
| the git-shortlog manpage is available at https://gitirc.eu/git-shortlog.html | 18:48 |
|
ikke
| --format is listed there | 18:48 |
| ← gast0n left | 18:49 |
| ← c4017w_ left | 18:50 |
|
grym
| ok, that's _just_ the body... but not the first line? | 18:50 |
|
ikke
| %B | 18:51 |
|
| should include both | 18:51 |
|
| or %s %b | 18:51 |
| ← DevAntoine left | 18:51 |
|
ikke
| but you need 2 newlines in between | 18:51 |
|
| %s%n%n%b | 18:51 |
|
grym
| ah ha! | 18:51 |
|
| yes, perfect. cheers | 18:51 |
| ← royal_screwup21 left | 18:51 |
| ← zebrag left | 18:52 |
| → zebrag joined | 18:52 |
| → c4017w joined | 18:53 |
| ← grym left | 18:54 |
| ← hidedagger left | 18:55 |
| ← c4017w left | 18:58 |
| ← yoh left | 19:00 |
| ← thinkpad left | 19:02 |
| ← rcoote left | 19:04 |
| → thinkpad joined | 19:05 |
| → vicfred joined | 19:07 |
| → stdedos joined | 19:10 |
| ← kiweun left | 19:11 |
| ← tiin57 left | 19:12 |
| → tiin57 joined | 19:16 |
| ← riksteri left | 19:16 |
| ← stdedos left | 19:16 |
| → yoh joined | 19:17 |
| ← julius_ left | 19:22 |
| → royal_screwup21 joined | 19:22 |
| ← YellowSu1 left | 19:23 |
| → bsanford joined | 19:23 |
| ← olx69 left | 19:25 |
| ← bsanford left | 19:26 |
| ← royal_screwup21 left | 19:27 |
| → mns joined | 19:33 |
| ← cdown left | 19:34 |
| → gast0n joined | 19:36 |
| ← Duikb00t left | 19:36 |
| → YellowSuB joined | 19:37 |
| ← tiin57 left | 19:42 |
| → tiin57 joined | 19:46 |
| → c4017w joined | 19:47 |
| → Lord_of_Life_ joined | 19:48 |
| → gordonfish joined | 19:49 |
| ← fulsiram left | 19:49 |
| ← Lord_of_Life left | 19:50 |
| Lord_of_Life_ → Lord_of_Life | 19:50 |
| → jetchisel joined | 19:54 |
| ← sord937 left | 19:58 |
| ← accesspoint left | 20:01 |
| → accesspoint joined | 20:02 |
| siers → ij | 20:04 |
| ← justanotheruser left | 20:05 |
| pikapika → pp | 20:06 |
| pp → peepeee | 20:07 |
| → Duikb00t joined | 20:08 |
|
relipse
| how do I rm all untracked files ending in .rej, see paste: https://dpaste.org/jzkc | 20:08 |
| peepeee → pikapika | 20:10 |
|
nkuttler
| relipse: do you have tracked files ending in rej? | 20:10 |
|
relipse
| nkuttler: no | 20:10 |
| → alfredb joined | 20:11 |
|
nkuttler
| just find . -name "*rej" -delete ? | 20:11 |
|
| run without -delete first | 20:11 |
| ← tiin57 left | 20:12 |
| ← Duikb00t left | 20:12 |
| → royal_screwup21 joined | 20:13 |
|
canton7
| or you could clean everything in src/local/portal | 20:13 |
| → nyxyn joined | 20:14 |
| → fulsiram joined | 20:15 |
| ← krofe left | 20:15 |
| → tiin57 joined | 20:16 |
| → c4017w_ joined | 20:16 |
| ← finn_elija left | 20:18 |
| → finn_elija joined | 20:18 |
| → m0viefreak joined | 20:19 |
| ← c4017w left | 20:20 |
| → justanotheruser joined | 20:20 |
| ← cim209 left | 20:23 |
| → workfrosty joined | 20:24 |
| → Natrick3 joined | 20:24 |
| → Duckle0 joined | 20:24 |
| → cim209 joined | 20:24 |
| → yourfate_ joined | 20:24 |
| → kshockey joined | 20:25 |
| ← kshockey left | 20:25 |
| → kshockey joined | 20:25 |
| ← Natrick left | 20:25 |
| → saidelike_ joined | 20:25 |
| Natrick3 → Natrick | 20:25 |
| → moviuro_ joined | 20:25 |
| ← staafl_inv0022 left | 20:26 |
| → staafl_inv0022 joined | 20:26 |
| ← kyshoc left | 20:26 |
| ← saidelike left | 20:26 |
| ← marshmallow left | 20:26 |
| ← reda left | 20:26 |
| ← jetchisel left | 20:26 |
| ← segnior left | 20:26 |
| ← daidoji left | 20:26 |
| ← yourfate left | 20:26 |
| ← L1Cafe left | 20:26 |
| ← Duckle left | 20:26 |
| ← ddevault left | 20:26 |
| ← moviuro left | 20:26 |
| Duckle0 → Duckle | 20:26 |
| yourfate_ → yourfate | 20:26 |
| → ddevault_ joined | 20:27 |
| → marshmallow joined | 20:27 |
| → daidoji joined | 20:27 |
| → jetchisel joined | 20:27 |
| → segnior joined | 20:28 |
| ddevault_ → ddevault | 20:28 |
| → finnb joined | 20:29 |
| → L1Cafe joined | 20:29 |
| ← led_belly left | 20:29 |
| → sgn joined | 20:31 |
| → led_belly joined | 20:32 |
| → reda joined | 20:32 |
| ← alfredb left | 20:32 |
| → jaziz1 joined | 20:38 |
| ← mindCrime_ left | 20:38 |
|
finnb
| Just playing around with git notes. Is it possible to have a note that will be available to read from any future commit. Let's say I'm on commit A, I then add commit B, then C. Is it possible to easily read the note from commit A once I'm on commit C? Like a silly TODO list, `git notes show --ref todo` | 20:41 |
| ← tiin57 left | 20:42 |
|
finnb
| In that example, I created the todo note on commit A. I haven't modified any notes on B or C | 20:42 |
| ← klonn left | 20:42 |
| ← jimmiehansson left | 20:43 |
| ← royal_screwup21 left | 20:44 |
| → royal_screwup21 joined | 20:44 |
| → tiin57 joined | 20:45 |
| → dpl_ joined | 20:49 |
| → DevAntoine joined | 20:49 |
| ← royal_screwup21 left | 20:49 |
|
rafasc
| finnb: No. | 20:51 |
| → mr_francois3 joined | 20:51 |
| → pcarphin joined | 20:51 |
| → sebas05 joined | 20:51 |
| → sagagnon40 joined | 20:51 |
|
rafasc
| finnb: For a todo list, maybe branch descriptions would be better. | 20:51 |
|
finnb
| Thought so :P Wanted to check if there was some weird thing I could do if I wanted to do that | 20:51 |
| ← zebrag left | 20:52 |
| → zebrag joined | 20:52 |
| ← dpl_ left | 20:53 |
|
finnb
| branch descriptions? | 20:53 |
|
rafasc
| git branch --edit-description; | 20:53 |
| ← DevAntoine left | 20:53 |
|
finnb
| man git branch | 20:53 |
|
gitinfo
| the git-branch manpage is available at https://gitirc.eu/git-branch.html | 20:53 |
|
finnb
| :D | 20:53 |
| → hqdruxn08_ joined | 20:54 |
| ← liefer left | 20:55 |
|
finnb
| Is there a way to attach general metadata to git repositories? | 20:55 |
| ← LuxuryMode left | 20:56 |
| ← rond_ left | 20:56 |
|
rafasc
| depends on what you mean by that. | 20:56 |
|
| e.g. there is .git/description where you can store a description of the repo. | 20:57 |
| ← stats4647 left | 20:57 |
| ← hqdruxn08 left | 20:57 |
| → stats4647 joined | 20:58 |
| ← gpanders left | 20:59 |
|
rafasc
| you can push refs to non-standard namespaces... like git notes itself 'refs/notes/'.. | 20:59 |
|
| branches can have description, but they are stored along with configuration, which makes it harder to share. | 20:59 |
|
finnb
| I'm writing a small tool which will tell you which other repositories your repository depends on. I originally considered just storing this information in a file like ".other-repos" but thought I'd play around with other methods. | 21:00 |
|
rafasc
| if you want to stick with notes, you can always copy the commits from one to another. | 21:01 |
|
imMute
| "depends on" ?? like submodules? | 21:01 |
|
finnb
| not submodules | 21:01 |
|
| It's just for fun | 21:01 |
| → Duikb00t joined | 21:02 |
|
rafasc
| orhpan branches are also an option: git switch --orphan | 21:02 |
|
| you get a complete unrelated branch where you can store whatever metadata you want. | 21:02 |
|
finnb
| Just a way of storing information like, "my repo uses github.com/x github.com/y github.com/z " etc. | 21:02 |
| ← stats4647 left | 21:03 |
|
rafasc
| this will sound like I am mocking you, but I am not: README.md | 21:04 |
|
finnb
| no... no I get you | 21:04 |
|
| I'm writing a tool for fun which will do some other things with the metadata | 21:04 |
| ← mellernoia left | 21:04 |
|
finnb
| At that point, I'd store it in a file like ".my-fun-tool" | 21:05 |
|
Betal
| don't builders usually have this info? like go modules, java gradle/maven, python requeriments ... ? | 21:05 |
|
finnb
| bazel | 21:05 |
|
| yeah | 21:05 |
| ← magpi left | 21:05 |
|
rafasc
| I think I would go with an an orphan branch personally, if you're not using a dependency manager. | 21:05 |
|
| it's super easy to store information with git config. | 21:05 |
|
finnb
| Can you push orphan branches? | 21:05 |
| ← jim87 left | 21:06 |
| → jim87_ joined | 21:06 |
|
finnb
| I'd like the metadata to be available to anyone who clones the repo | 21:06 |
| → magpi joined | 21:06 |
|
finnb
| > you can push refs to non-standard namespaces... like git notes itself 'refs/notes/'.. | 21:06 |
| ← Duikb00t left | 21:07 |
|
finnb
| But would that still be tied to a specific commit? | 21:07 |
|
| I guess I can test this now quickly :P | 21:07 |
|
rafasc
| you can push orphan branches just as regular branches. They work the same. | 21:08 |
|
| For non-standard namespaces, you'll have to clone/push manually to the namespace. | 21:08 |
|
finnb
| Could you add it to your git config....? | 21:09 |
|
| to push/fetch each time or do you literally have to write "git push refs/notes/weird-thing-im-doing" | 21:09 |
|
rafasc
| you could add it to the config, but it is something you'll have to do manually. | 21:09 |
|
finnb
| I see | 21:10 |
| → DevAntoine joined | 21:10 |
|
rafasc
| remember that configs are not shared across clones. | 21:10 |
|
finnb
| I noticed with notes you have to add something to ensure you fetch them anyway | 21:10 |
| → royal_screwup21 joined | 21:10 |
|
rafasc
| you need to manually configure the fetch spec, yeah. | 21:11 |
| → liefer joined | 21:11 |
|
rafasc
| I have used git config to store metadata, e.g. with --file you could do: git config --file=mysuperduper --add dependency.url github/a | 21:11 |
| → kiweun joined | 21:11 |
| ← tiin57 left | 21:12 |
|
finnb
| interesting | 21:12 |
|
rafasc
| and fetch it the same way you fetch things from the regular gitconfig, but passing --file. | 21:12 |
|
| but for anything more complex than that I think a proper dep maintenance tool would be better. | 21:14 |
|
finnb
| I agree a proper tool is better, I'm just playing around :) | 21:14 |
|
| git notes --ref refs/notes/weird add -m "hello there" >> so that's how you'd use a non-std namespace? | 21:14 |
| ← DevAntoine left | 21:14 |
|
rafasc
| you can use namespaces with notes, but they're still per commit. | 21:15 |
| → tiin57 joined | 21:15 |
|
rafasc
| when I mentioned non-std namespace was for branches. | 21:15 |
|
| Like pushing a branch into refs/metadata | 21:15 |
|
finnb
| What's the syntax for that? | 21:15 |
|
| I tried and failed | 21:15 |
|
rafasc
| git push <local>:<remote> | 21:16 |
|
| git push master:refs/metadata | 21:16 |
|
finnb
| ahh | 21:16 |
| ← kiweun left | 21:16 |
|
rafasc
| 'master' could be anything. | 21:17 |
|
finnb
| Right so it's a special branch for metadata | 21:19 |
|
| choices | 21:19 |
|
| well, I learnt something new today | 21:19 |
|
| so thankyou :) | 21:19 |
|
rafasc
| no problem. :) Messing with git is fun. | 21:20 |
|
| I did a git rss reader for a podcast I liked.. So yeah tell me about weird-tools | 21:21 |
| ← accesspoint left | 21:22 |
| ← nyxyn left | 21:23 |
| ← amahl left | 21:23 |
| ← jim87_ left | 21:25 |
|
finnb
| https://github.com/git-depend/git-depend | 21:28 |
|
| That's what I was playing around with | 21:28 |
| ← crose left | 21:28 |
|
rafasc
| let me see If I understand this correctly. | 21:29 |
|
finnb
| Excuse the readme | 21:29 |
|
rafasc
| What you're trying to do is to syncronize two repos that have the same structure, but are different. | 21:29 |
|
| ? | 21:29 |
|
finnb
| Trying to commit some feature to two repositories atomically | 21:29 |
|
rafasc
| that's a hard problem. | 21:30 |
|
finnb
| s/hard/interesting | 21:30 |
| magpi → Guest27310 | 21:30 |
| → magpi_ joined | 21:30 |
| ← Guest27310 left | 21:30 |
| magpi_ → magpi | 21:30 |
| → DevAntoine joined | 21:31 |
| → stats4647 joined | 21:31 |
|
rafasc
| push has --atomic, so you could have it like a monorepo. | 21:31 |
|
| git has something called namespaces (it's a different one from the one we recently mentioned). | 21:32 |
|
| git help namespaces | 21:32 |
|
finnb
| man git namespaces | 21:32 |
|
gitinfo
| the git manpage is available at https://gitirc.eu/git.html | 21:32 |
|
j416
| finnb: what about if there's a merge conflict? would that abort everything? | 21:32 |
|
rafasc
| man gitnamespaces | 21:32 |
|
gitinfo
| the gitnamespaces manpage is available at https://gitirc.eu/gitnamespaces.html | 21:32 |
|
rafasc
| I messed with this once, can't remember what for. | 21:33 |
|
finnb
| j416 - not solving that just yet but that's a hard problem. At the moment, yes, abort everything. | 21:33 |
|
j416
| I see. | 21:33 |
| → blyat-73 joined | 21:34 |
|
j416
| don't forget that you can have a conflict even though git thinks everything went fine. | 21:34 |
|
finnb
| j416, example? | 21:34 |
|
rafasc
| and it would only work if you had control of the server. | 21:34 |
|
finnb
| The idea is to "lock" the repositories with a git note. If you can write a git note to every repo | 21:34 |
|
j416
| the merge may have worked syntactically, but not semantically | 21:34 |
|
| e.g., a function was renamed in one branch and a function call to the old name was added elsewhere in the other branch | 21:35 |
|
finnb
| The idea is to "lock" the repositories with a git note. If you can write a git note to every repo, then you're ok to merge. | 21:35 |
|
| That's my basic idea which you can probably now tell me why that isn't going to work :P | 21:35 |
| ← DevAntoine left | 21:35 |
|
finnb
| j416 - should CI normally catch this? | 21:36 |
|
| I'm trying to palm off as much as I can to CI | 21:36 |
|
j416
| depends on your language and test coverage I suppose | 21:36 |
|
| I wouldn' | 21:36 |
|
| I wouldn't bet on it | 21:36 |
|
| I always check my merges manually | 21:36 |
|
finnb
| I see what you're saying | 21:37 |
|
rafasc
| this would require server side modification or at least hooks, that denies pushes if you don't have the lock, whatever it is. | 21:37 |
|
j416
| you probably got this already but I'll say it anyway; this feels like a lot of effort for something that would be better handled by a proper dependency manager or a monorepo, or even submodules | 21:37 |
|
finnb
| Again, just for fun :) | 21:38 |
|
j416
| have fun, I guess | 21:38 |
| ← royal_screwup21 left | 21:38 |
|
rafasc
| another thing you can toy with is signed pushes. | 21:38 |
| → royal_screwup21 joined | 21:38 |
|
finnb
| Signed pushes? | 21:38 |
|
rafasc
| git can sign the push transaction. | 21:38 |
|
| and reject everything that isn't signed by the person holding the lock. | 21:39 |
| ← arcatech left | 21:39 |
|
finnb
| That would require a server modification right? | 21:39 |
| ← tiin57 left | 21:42 |
|
finnb
| > this would require server side modification or at least hooks, that denies pushes if you don't have the lock, whatever it is. | 21:42 |
|
| If you wanted to stop bad actors or silly people, yes. But if the client could detect if it got the lock or not, then I believe it will be OK and you wouldn't have to modify the server. | 21:42 |
|
rafasc
| I think you can do it with server-side hooks. But I'm not sure. | 21:42 |
|
finnb
| I'll add it to be reading list :) | 21:42 |
|
| *my reading | 21:42 |
| ← gearnode left | 21:43 |
| ← royal_screwup21 left | 21:43 |
|
rafasc
| git lfs has a mechanism for file locking, not sure if it would help you. | 21:43 |
|
finnb
| writing it down | 21:44 |
|
| It would be good to at least understand how they did that | 21:45 |
| → tiin57 joined | 21:45 |
| ← is_null left | 21:46 |
| → nyxyn joined | 21:46 |
| → cliluw joined | 21:47 |
|
finnb
| I like the idea of signing the pushes though. Saying this user obtained the lock and now they can push would be cool. | 21:48 |
| ← skered left | 21:48 |
|
finnb
| Thanks for the advice anyway! Going afk now :) | 21:48 |
|
rafasc
| same o/ | 21:48 |
|
ARoxdale
| It is normal when using "git subtree" that "git log" doesn't follow files which have been added in a subtree past the tree merge commit? | 21:50 |
| → jim87_ joined | 21:51 |
| → DevAntoine joined | 21:51 |
| ← sgn left | 21:52 |
| → sgn joined | 21:52 |
| → xgfvc_ joined | 21:52 |
| ← LetoThe2nd left | 21:53 |
|
ARoxdale
| This article suggest a manual merge instead of using subtree. https://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/ | 21:53 |
|
| I will try that instead | 21:53 |
| ← xgfvc_ left | 21:54 |
| ← xgfvc left | 21:55 |
| → lawt joined | 21:55 |
| → gpanders joined | 21:56 |
| → Duikb00t joined | 21:56 |
| ← DevAntoine left | 21:56 |
| ← theoceaniscool left | 21:57 |
| ← gpanders left | 22:00 |
| ← Duikb00t left | 22:00 |
| ← chachasmooth left | 22:02 |
| → chachasmooth joined | 22:03 |
| → arcatech joined | 22:04 |
| → xgfvc joined | 22:06 |
| ← fulsiram left | 22:06 |
| → fulsiram joined | 22:09 |
|
cYmen
| why does a shared repo prevent non-fast-forward? | 22:11 |
| ← tiin57 left | 22:12 |
| → DevAntoine joined | 22:12 |
| ← tkob left | 22:13 |
| ← nyxyn left | 22:13 |
| → tkob1 joined | 22:13 |
| → royal_screwup21 joined | 22:15 |
| → tiin57 joined | 22:16 |
| ← DevAntoine left | 22:17 |
| → krofe joined | 22:19 |
| ← Narrat left | 22:19 |
| ← royal_screwup21 left | 22:20 |
| → chupawan_ joined | 22:20 |
| ← chupawan left | 22:24 |
| → royal_screwup21 joined | 22:24 |
| → Kaisyu joined | 22:25 |
| ← CodeSlingerPaul left | 22:28 |
| → theoceaniscool joined | 22:29 |
|
nedbat
| cYmen: that's likely a server-specific policy, and possibly one you can change. non-fast-forward updates might be difficult for collaborators to use, and if they've built work on commits you've abandoned, the merge could be very difficult. | 22:29 |
| → SleePy joined | 22:31 |
| ← indy left | 22:31 |
| → DevAntoine joined | 22:33 |
| ← sudoforge left | 22:34 |
| → skered joined | 22:37 |
| ← fax left | 22:37 |
| ← Tk55 left | 22:38 |
| ← DevAntoine left | 22:38 |
| ← CryptoClub left | 22:40 |
| ← tiin57 left | 22:42 |
| → Tk55 joined | 22:43 |
| → CryptoClub joined | 22:43 |
| → indy joined | 22:43 |
| → tiin57 joined | 22:45 |
|
cYmen
| right so it is totally possible, I guess | 22:47 |
|
| but if you set a repo to shared it will automatically be set | 22:47 |
|
| and I want to understand the issues you re describing | 22:47 |
|
| but why is it different from remote work? | 22:47 |
|
| i assumed it would have to be something weird that involves file permissions | 22:47 |
|
| or maybe you can just explain your concerns in a bit more detail...? | 22:48 |
| → Duikb00t joined | 22:50 |
| ← iffraff_ left | 22:50 |
| ← jim87_ left | 22:50 |
| ← zebrag left | 22:52 |
| → zebrag joined | 22:52 |
| → DevAntoine joined | 22:54 |
| ← Duikb00t left | 22:54 |
| → twiclo joined | 22:56 |
| ← john_johnk left | 22:56 |
|
twiclo
| I did a git reset --hard before committing and lost all my work. I'm pretty sure the answer is no but I figured I should ask if that can be done undone | 22:56 |
| ← DevAntoine left | 22:59 |
| → cads2 joined | 23:03 |
| → lightstalker joined | 23:04 |
| ← royal_screwup21 left | 23:04 |
| → royal_screwup21 joined | 23:05 |
| → Xenguy joined | 23:05 |
| ← sgn left | 23:08 |
| → sgn joined | 23:09 |
| ← royal_screwup21 left | 23:10 |
| ← sgn left | 23:10 |
| → sgn joined | 23:11 |
| ← tiin57 left | 23:12 |
|
rafasc
| twiclo: you said before committing, did you ever run git add? | 23:12 |
| → kiweun joined | 23:12 |
|
rafasc
| If you staged the changes, it can be retrieved. If otherwise, I'm sorry for your loss. | 23:12 |
| ← bolovanos left | 23:14 |
| → DevAntoine joined | 23:15 |
| → tiin57 joined | 23:16 |
| ← kiweun left | 23:17 |
| → jess joined | 23:18 |
| → gearnode joined | 23:19 |
| ← workfrosty left | 23:19 |
| ← DevAntoine left | 23:20 |
| → djapo joined | 23:23 |
|
djapo
| how do I print what remote all branches are tracking and how do I change them? | 23:23 |
| → mindCrime_ joined | 23:25 |
|
rafasc
| djapo: git branch -vv shows them inside [] | 23:26 |
| ← xgfvc left | 23:27 |
|
rafasc
| you can change them with git branch --set-upstream-to=<something> | 23:27 |
|
djapo
| thanks | 23:28 |
| → sudoforge joined | 23:28 |
|
rafasc
| git for-each-ref refs/heads --format="%(refname)%09%(color:red)%(upstream:short)" | 23:30 |
|
| djapo: you can play with formatting if you want it in a neat format. | 23:30 |
| → zrhoffman joined | 23:31 |
| ← djapo left | 23:32 |
|
ARoxdale
| For the record, the method recommended in this link did preserve file history, but only when git log --follow is used. https://saintgimp.org/2013/01/22/merging-two-git-repositories-into-one-repository-without-losing-file-history/ | 23:36 |
| → DevAntoine joined | 23:36 |
| → cdown joined | 23:36 |
|
ARoxdale
| I think this is less related to the merge than 'git log' having poor performance in tracking moved/renamed files | 23:36 |
| → royal_screwup21 joined | 23:39 |
| ← DevAntoine left | 23:40 |
| ← tiin57 left | 23:42 |
| ← royal_screwup21 left | 23:44 |
| ← LionsMane left | 23:44 |
| → Duikb00t joined | 23:44 |
| ← blyat-73 left | 23:45 |
| → tiin57 joined | 23:46 |
| → royal_screwup21 joined | 23:46 |
| ← Duikb00t left | 23:49 |
| ← tejr left | 23:51 |
| ← sgn left | 23:53 |
| → sgn joined | 23:53 |
| → DevAntoine joined | 23:57 |
| → djapo joined | 23:58 |
| ← computeiro left | 23:58 |