IRCloggy #git 2021-09-10

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2021-09-10

christall joined00:02
Misotauros joined00:05
bambanxx joined00:11
christall left00:11
shokohsc8 left00:13
shokohsc8 joined00:14
ferdna joined00:15
Guest77 left00:15
austin987 joined00:26
bambanxx left00:32
austin987 left00:32
xiongxin8802 joined00:33
elf_fortrez joined00:39
christall joined00:44
bambanxx joined00:45
elf_fortrez left00:45
jwillikers left00:46
christall left00:48
bambanxx left00:49
Soni hmm "no slash-separated component can begin with a dot or end with the sequence .lock"...00:51
so basically "tree.lock" can never be a part of a git ref, good to know00:52
but index.html can...?00:52
jazzy2 joined00:54
bambanxx joined00:54
Soni oh, you can't have subrefs, only siderefs00:55
if you have `refs/heads/foo` you can't have `refs/heads/foo/bar`00:55
odoood left00:56
hbautista_ joined00:57
Xaldafax left01:07
___nick___ left01:12
MrC joined01:13
nivag left01:15
nivag joined01:18
sargon joined01:19
xiongxin8802 left01:29
xa_ left01:32
mgedmin joined01:33
nyah left01:37
keypusher left01:37
Murr left01:41
Murr joined01:41
xiongxin8802 joined01:45
vysn left01:47
dsrt^ left01:51
jetchisel left01:59
eschwartz tang^, phryk: I'd recommend deleting the entire file and saving that. Closing without saving could result in the original message getting saved, in case the editor got opened with pre-filled contents such as via --amend... or -e since I assume the use of -e is because -m without -e will not let you edit the prefilled message02:00
phryk eschwartz: oh, it was -e without -m, but yeh commit message had to be empty.02:01
eschwartz well, -e without -m is *probably* a no-op and you needn't bother using -e02:01
> -e, --edit: The message taken from file with -F, command line with -m, and from commit object with -C are usually used as the commit log message unmodified. This option lets you further edit the message taken from these sources.02:02
FinnElija left02:05
ackyshake left02:05
gnoo joined02:06
FinnElija joined02:07
gast0n left02:23
jetchisel joined02:24
gast0n joined02:26
FFY00 left02:28
FH_thecat joined02:29
XV8 left02:33
FFY00 joined02:36
christall joined02:45
vs^ joined02:51
christall left02:55
Dotz0cat left03:02
FinnElija left03:03
FinnElija joined03:04
gast0n left03:09
Dotz0cat joined03:13
vs^ left03:20
bambanxx left03:20
chenxuezhao joined03:21
pyeveryt_ joined03:22
bitmega joined03:23
ttree left03:24
dermoth left03:24
ttree joined03:25
atrigent left03:30
onichomp left03:30
zmt01 joined03:34
durham_ joined03:35
xiongxin8802 left03:35
R2robot left03:36
R2robot joined03:36
durham left03:37
dermoth joined03:38
zmt00 left03:38
jaredchung joined03:38
jaredchung left03:39
Murr left03:40
Murr joined03:41
tejr joined03:42
pyeveryt_ left03:43
bitmega left03:43
odoood joined03:45
howdoi left03:45
chenxuez_ joined03:46
chenxuezhao left03:48
dsrt^ joined03:50
ThorMojito1 left03:55
odoood left04:03
PenguinMan98 left04:07
bitmega joined04:08
Strom left04:11
odoood joined04:12
dviola left04:12
Strom joined04:13
arkho left04:15
arkho joined04:15
bitmega left04:16
ferdna left04:17
chenxuez_ left04:19
zebrag left04:21
va5c0 joined04:28
odoood left04:31
AnAverageHuman left04:32
zmt01 left04:32
zmt00 joined04:33
va5c0 left04:33
ttree left04:34
Lunatrius` joined04:35
Lunatrius left04:37
Lunatrius`Lunatrius04:37
chenxuezhao joined04:38
chenxuezhao left04:39
chenxuezhao joined04:39
chenxuezhao left04:39
chenxuezhao joined04:40
chenxuezhao left04:40
chenxuezhao joined04:40
chenxuezhao left04:41
chenxuezhao joined04:41
chenxuezhao left04:42
lavos left04:44
molt joined04:45
Shentino left04:46
bitmega joined04:46
Shentino joined04:46
vishal left04:47
vishal joined04:50
bitmega left04:51
odoood joined04:54
onichomp joined04:54
arcatech left04:55
AbleBacon left04:58
aniruddha joined04:59
reset left05:01
ferz left05:05
FH_thecat left05:08
pulse left05:10
Doraemon joined05:22
NeoCron left05:24
odoood left05:31
makara joined05:35
ackyshake joined05:40
ferz joined05:43
FH_thecat joined05:45
Mo joined05:47
subopt left05:47
Mo Hi, question about https://github.com/Zygo/bees/commits/master, the last commit about "TOTAL RATES" was on Aug 31, but if I clone the repo, git log says Jun 22. Why?05:48
foo How can I see a git log history of changes on a specific file?05:49
Mo foo: git log <file>05:51
foo Mo: oh, I thought I tried that. Thanks.05:53
jinsun Mo: github is probably showing commit date, and git log is showing author date05:56
CommunistWolf left05:56
Mo jinsun: What is author date? I started comparing because git log has a different sorting than the showed date, probably sorting for commit date and showing author date.05:58
CommunistWolf joined05:58
elibrokeit left05:59
elibrokeit joined05:59
jinsun a commit just has two dates associated with it, when you create a new commit then both author date and commit date are set to the time when it was created06:01
Mo: but if you amend a commit using rebase or --amend or something, then usually only the commit date changes06:02
bradyt github relies too much on dates for display, so they better use commit date06:03
author dates can easily be out of order without any doctoring06:03
but you can doctor commit dates to make github's display kinda garbage06:04
i think git log uses parent-child, so it's free to put any date i guess06:05
durham_ left06:12
mexen joined06:13
FH_thecat left06:17
lgc left06:24
saroy joined06:31
Vonter left06:33
palasso joined06:34
hbautista_ left06:36
Haohmaru joined06:41
infl00p joined06:45
Sazhen86 joined06:48
pflanze joined06:49
furrymcgee joined06:51
christall joined06:52
Tabmow joined06:53
christall left06:57
Gurkenglas joined07:04
gnoo left07:05
unluckyshrubbery left07:05
gnoo joined07:06
onizu joined07:11
gnoo left07:11
mei joined07:12
gnoo joined07:14
theoceaniscool joined07:18
otisolsen70 joined07:21
TomyWork joined07:23
FH_thecat joined07:23
xiongxin8802 joined07:26
xiongxin8802 left07:29
christall joined07:30
va5c0 joined07:30
christall left07:34
christall joined07:35
pflanze left07:35
thiago left07:37
furrymcgee left07:37
christall left07:39
bitmega joined07:41
dermoth bradyt, afaik git log orders by author date but also retain child/parent ordering, so when listing commits through multiple branches a merge commit will always have all commits from all parents showing below it.07:42
bradyt dermoth: where do you think ordering by child/parent does not suffice in git's display?07:45
i didn't mean that git _only_ considers parent child07:45
bitmega left07:45
goldfish joined07:45
bradyt but rather that it considers parent child with reasonable precedence, at all07:46
whereas github display just completely drops the ball07:46
dermoth hummm I can't actually find the reference for this statement, not sure if it changed or maybe was about some more specialized tool...07:46
bradyt if i use --graph, parents are below children07:47
iiuc07:47
furrymcgee joined07:47
bradyt you can pretty easily put parents above and below children in github07:47
furrymcgee left07:47
fflam_ left07:48
The_Blode joined07:49
ppang joined07:49
bradyt like for A <- B <- C, you can get that to look like B, A, C in github07:50
dermoth fun...07:50
The_Blode_ left07:50
bradyt just put B as an earlier commit date than A07:50
dermoth might be the same with git log actually, but you have to alter the author date07:51
unless I missed what I was referring to07:51
bradyt no, at least with --graph, i've never seen git mess this up07:51
dermoth yes i'm talking default sort order07:51
bradyt ah, i rarely use it07:51
sounds vaguely familiar07:51
makara `git log -z` separates commits by NUL instead of newline. How can I separate by commas?07:52
`git log -z` separates commits by NUL instead of newline. How can I separate by commas?07:52
command `git log -z` separates commits by NUL instead of newline. How can I separate by commas?07:52
makara left07:52
makara joined07:52
makara sorry07:53
alkino joined07:54
Wuzzy joined07:55
furrymcgee joined07:56
dermoth makara, did you mean "how can I separate the *commits*" ?07:56
oh nm07:56
mistread07:56
xiongxin8802 joined07:57
dermoth you could use tr...07:57
but are you using a format? else you will also split on commas in commit messages?07:57
bradyt hmm, how about `git log -z | tr '[:cntrl:]' '\n'`07:58
oh comma07:58
how about git log -z | tr '[:cntrl:]' '🐶' | less07:59
dermoth git log --pretty=format:%H -z|tr '\000' ','07:59
would print comma-separated hastes08:00
hashes08:00
makara i need a portable solution08:00
bradyt ah yeah, tr '\000' '🐶' works08:00
dermoth well as long as you don't tr to an emoticon :p08:01
bradyt i learn so much here08:01
makara powershell doesn't pipe. Its git or bust08:02
dermoth not not sure of the portability of tr \000 but I can check..08:02
as you mean non-POSIX portability?08:02
makara yes08:02
bradyt isn't NUL pretty portable?08:04
hmm08:04
can you use python or something for this?08:05
otisolsen70_ joined08:05
bradyt maybe this is just powershell script08:05
osse powershell pipes just fine08:05
otisolsen70_ left08:06
osse git rev-list HEAD | % { $str ="$str$_," }; echo $str08:07
otisolsen70 left08:09
makara it also has to work in cygwin, and piping is not efficient. There should just be a log.separator config I can set08:10
Betal left08:11
jinsun bradyt: why does your nul and comma look weird? https://pasteboard.co/SJ3LZXYQLfag.png08:11
bradyt jinsun: i didn't know about \ 0 0 0 so i wrote [ : c n t r l : ]08:13
and that's not a comma, it's a dog08:13
jinsun okay so you really wanted to write that08:14
ppang dog separated values08:16
osse makara: but that setting doesn't exist08:16
git log --pretty=format:%H,08:19
there08:19
why didn't I think of this before08:20
nvm, I'm stupid08:20
makara because it adds it after every commit, not just between commits08:21
fine for ECMA5, but not valid json08:21
ill try the -z | tr \000 thing08:22
ive asked on the dev channel about adding the config08:22
bradyt remove last comma?08:23
osse Getting the exact same snippet of code to it, that should work in both powershell and cygwin, is a long shot08:23
sniperwolf joined08:24
EvilDMP joined08:25
makara i tried, it works08:25
grep behave differently on powershell08:25
lalitmee joined08:25
makara won't even bother with sed08:25
`git log -5 --pretty=format:'{%n%w(0,2,2)"commit":"%H",%n"date":"%ai",%n"changelog":"%-N"%n%w(0,0,0)}' -z | tr '\000' ','`08:26
xiongxin8802 left08:26
ppang left08:28
vysn joined08:30
makara here's where the wheels come off - im using exec-maven-plugin to invoke git log. It doesn't like the pipe08:33
osse maybe that thing has a way to specify that you want to use a shell to process the command line08:36
or you can put the thing in a script, and have the thing run that script08:36
goldfish left08:37
makara ag, then I have to fix the #! section of the sh script to be portable. The plugin will run a shell, but then it needs to be the same on all systems08:38
its a nightmare08:38
it seems I might be able to do something with git-interpret-trailers if I can just grok what the heck its all about08:39
osse Will #!/bin/sh work?08:43
furrymcgee maybe there is a eval-maven-plugin08:43
tejr left08:44
tejr joined08:44
xiongxin8802 joined08:45
natrys joined08:47
madewokherd left08:48
EvilDMP left08:49
YuGiOhJCJ joined08:51
igemnace joined08:52
makara https://maven.apache.org/plugins/maven-scripting-plugin/jsr223-script-engines.html08:57
EvilDMP joined08:58
AnisBarghouthi[m left09:00
furrymcgee this is not a pipe09:03
skapata left09:03
makara ?09:04
Arokh left09:10
Arokh joined09:11
furrymcgee the biggest mistake in programming is not using shell in the first place09:14
lalitmee_ joined09:14
lalitmee left09:15
makara the biggest mistake in programming is trying to solve the biggest mistakes in programming09:16
unluckyshrubbery joined09:16
makara ill settle for invalid json if it means not having to fork a process insides a jvm09:17
speckz joined09:18
va5c0 left09:28
sQVe joined09:30
va5c0 joined09:30
dege joined09:35
christall joined09:36
christall left09:40
Murr left09:40
Murr joined09:41
gry left09:41
dege is there a way (short of aliasing all commands) to enforce --dry-run mode via configuration and instead require an opt-in to perform changes? I've been unable to find anything in the docs and code to support that such a thing exist09:44
ferz left09:45
sargon left09:47
xiongxin8802 left09:48
bn_work left10:00
tejr_ joined10:01
ferz joined10:01
tejr left10:02
tejr_tejr10:02
keypusher joined10:06
EvilDMP left10:10
ferz left10:18
makara left10:18
pflanze joined10:19
Soni how are submodules stored in trees?10:21
osse a tree is a list of references to blobs, or other trees, but sometimes commits.10:23
the latter case is used by submodule10:24
pflanze_ joined10:31
pflanze left10:34
stkrdknmibalz left10:34
EvilDMP joined10:34
Soni how does it know where to get the commit?10:36
va5c0 left10:36
va5c0 joined10:38
aniruddha left10:39
computeiro joined10:39
onichomp left10:41
wender joined10:41
tejr left10:42
tejr joined10:42
jwillikers joined10:43
computeiro left10:44
igemnace left10:45
canton7 Soni, that's what the configuration in .gitmodules (which is then copied into .git/config) is for: that gives the URL to fetch that commit from10:45
Soni ah, so it must be work-tree-aware to figure that out10:46
canton7 How do you mean?10:50
rafspiny left10:53
osse Soni: it can probably read .gitmodules without relying on it being on disk10:55
Soni osse: sure but you can't start at an arbitrary tree for that, you need to start at a commit/ref10:57
and you need to do that for every commit/ref and then collect the results and check that they all agree or otherwise do something else10:57
Sazhen86 left11:03
osse That last part sounds specific to what you're doing11:04
But yes, .gitmodules can only be at the top level11:04
Soni yeah deduplicating loose but processed trees and blobs is kinda weird11:05
Guest842 joined11:05
osse And you cannot tell if an arbitrary tree is a toplevel tree or not just by looking at that tree.11:05
Soni yeah11:05
osse But you can check if if it contains a .gitmodules regardless. The majority of tree objects won't have one, probably11:06
gnoo left11:08
speckz left11:12
gnoo joined11:13
rewrit3 joined11:14
mei left11:17
Guest842 left11:18
tsdh joined11:19
otisolsen70 joined11:20
tejr left11:23
tejr joined11:25
atrigent joined11:29
emanuele6 joined11:30
Tobbi_1 joined11:30
Mo left11:32
Tobbi_ left11:32
Tobbi_1Tobbi_11:32
FH_thecat left11:33
Nalt left11:35
gh34 joined11:36
tsdh left11:37
tsdh joined11:39
FinnElija left11:39
bitmega joined11:42
reset joined11:44
bitmega left11:47
FinnElija joined11:48
masber joined11:54
masber hi, I have a situation with git I don't understand, I did a git commit and then a git checkout on a branch11:54
Ballerburg9005 joined11:54
masber now I did some changes and then commit and push. Push is telling me that I am not in a branch?11:55
https://dpaste.org/6Sph11:56
Anunay git push <remote, eg. origin> <branch> to push that branch.11:56
masber but that branch exists in remote11:56
I don't understand, if I did a checkout from a branch that exists in remote, why git does not understand?11:57
Anunay Oh you're in a detached head state11:58
masber https://dpaste.org/kbRo11:58
yes11:58
pulse joined12:00
christall joined12:01
Anunay You likely checked out a remote branch, now that you're in a detached state, just make a new branch with12:02
git branch12:02
check that out12:02
and then git push origin <branch>12:02
Oh like use the same name12:03
oh and you'll be told to use set-upstream12:03
masber how could I checkout a remote branch properly and at the same time avoid having a detached head?12:04
lalitmee__ joined12:04
Anunay git checkout -b <localname> remote/branch12:05
lalitmee_ left12:07
bambanxx joined12:07
Anunay Basically git doesn't really have a checking out a "remote", instead you just create a local branch (of any name) can set the remote as it's upstream.12:07
or push that same local branch to multiple remotes.12:08
aidalgol left12:10
Anunay Also I think if you have just 1 remote then just checking out with git checkout branch should automatically do that. I do not recommend making that a habit12:10
aidalgol joined12:12
drogas joined12:15
va5c0 left12:18
va5c0 joined12:20
gnoo left12:21
gnoo joined12:21
christall left12:28
srinidhi left12:29
aidalgol left12:34
sandipan joined12:35
wender left12:36
saroy left12:36
computeiro joined12:36
bitmega joined12:37
aidalgol joined12:37
bitmega left12:38
saroy joined12:38
christall joined12:39
saroy left12:40
sandipan left12:41
saroy joined12:41
jimklimov1 joined12:44
YuGiOhJCJ left12:47
vaucouleur joined12:47
jimklimov left12:47
saroy left12:48
gh34 left12:48
xiongxin8802 joined12:49
dviola joined12:49
vladoski joined12:49
zmt01 joined12:51
gh34 joined12:52
Xenguy left12:52
wender joined12:53
zmt00 left12:54
computeiro left12:56
bambanxx left12:58
vladoski left13:00
Samian left13:06
ThorMojito joined13:14
cdown left13:17
malteger joined13:17
mei joined13:19
mei left13:20
otisolsen70_ joined13:21
mei joined13:22
kapil left13:23
kapil joined13:24
brw left13:24
otisolsen70 left13:25
pflanze joined13:25
brw joined13:25
pflanze_ left13:26
mei left13:27
mei joined13:27
jimklimov joined13:32
jimklimov2 joined13:33
jimklimov1 left13:34
jimklimov left13:37
ChmEarl joined13:39
AbleBacon joined13:39
tureba_ joined13:43
tureba_ left13:43
tureba joined13:46
ThorMojito left13:47
ThorMojito joined13:48
masber left13:48
sQVe left13:55
fstd left13:57
fstd joined13:57
wolfshappen left13:58
wolfshappen joined13:58
zebrag joined14:01
nyah joined14:04
natrys left14:05
fstd left14:05
fstd joined14:05
AnAverageHuman joined14:07
otisolsen70_ left14:07
fstd left14:10
fstd joined14:10
vladoski joined14:10
jinsun left14:12
fstd left14:15
fstd joined14:15
XV8 joined14:15
fstd left14:19
fstd joined14:20
srinidhi joined14:21
odoood joined14:23
fstd left14:25
fstd joined14:25
fstd left14:29
fstd joined14:29
arcatech joined14:30
fstd left14:34
fstd joined14:34
arcatech left14:37
fstd left14:38
fstd joined14:38
fstd left14:43
vladoski left14:43
fstd joined14:43
fstd left14:48
fstd joined14:48
XV8 left14:50
dsrt^ left14:50
dehl^ joined14:51
fstd left14:53
fstd joined14:53
mexen left14:53
XV8 joined14:53
lalitmee_ joined14:53
lalitmee__ left14:56
mei left14:57
fstd left14:58
fstd joined14:58
thiago joined15:00
zumba_addict joined15:00
va5c0 left15:00
fstd left15:02
fstd joined15:02
vladoski joined15:03
speckz joined15:04
Soni finally https://soniex2.autistic.space/git-repos/htmlgdump.git/browse/refs/heads/deploy/tree/git-hooks/post-receive/15:07
fstd left15:07
fstd joined15:07
va5c0 joined15:07
SilverFox joined15:08
teut joined15:09
LuKaRo left15:09
SilverFox heyo! This is sorta off topic and weird but, we use a lot of git pipelines and stuff and have a lot of branches etc, im wondering.. is there perhaps a digital signage software or something similar that could, display a few stats and update them whenever? sorta like gitg with the branch view or, idk just throwing it out there if anybody has used anything like that before!15:10
teut my project has a single branch master, now a colleague clones the repo , works on it, I meanwhile work on the master branch add few commits , so now we have a diversion, now he sends a pull request15:11
I click the fat green button on github of "rebase and merge"15:11
fstd left15:12
fstd joined15:12
teut so if rebase happens then all commits of him should be cherry picked and added to front of my master15:12
is this correct ?15:12
I got no conflicts15:12
SilverFox if nothing he did conflicted with anything you did, then the changes even to the same file can come together15:13
like a zipper ;315:13
to be sure its the functionality u want, u could merge master back into your developing bracnch, test/ci/cd whatever and then confirm its ok to merge back to master15:14
LuKaRo joined15:14
teut no, he changed a file15:15
he changed code inside footer.js totally15:16
fstd left15:17
fstd joined15:17
teut I asked him and he said he just ammend's every commit15:17
lalitmee joined15:17
teut Uploaded file: https://uploads.kiwiirc.com/files/dca9292f16aa17e54748c672d8cf405b/image.png15:18
Guest67 joined15:18
teut so would if I had just merged , I had received conflicts?15:18
Guest67 Hi. Is there a built-in command to "git mv" a file from my top-level repo, to a submodule? Or am I supposed to git rm on the 1st, git add on the 2nd?15:18
teut but I know in some cases rebase also gives conflicts15:19
SilverFox teut, *shrug*15:19
teut can someone tell those plz?15:19
lalitmee_ left15:19
SilverFox I dont understand what ur asking15:19
if there are no conflicts, whats the problem?15:19
teut understanding the scenerio , that s it15:19
SilverFox if u wanna make sure it all actually still works, merge master back into ur developing branch and check15:19
https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase15:21
wender left15:21
TomyWork left15:21
teut I m lucky this guy only added a single commit, but other people can add 10-20 commits and if I used rebase in that situation15:21
X)15:21
fstd left15:21
fstd joined15:21
lalitmee_ joined15:22
Guest67 teut: if you're not comfortable using git, stick to regular merge, dont rebase. Sure it makes for a slightly uglier log history but at least you'll understand what's going on15:24
lalitmee left15:25
fstd left15:26
fstd joined15:26
teut actually I only rebase15:27
I never have used merge15:28
even when merging several branches15:28
and then , stashing them15:28
the commits15:28
I have lost hot of work due to using the merge features, then conflicts arise and strange squiggly line in vscode asked to select incoming, outstanding , etc and I always messed that up15:29
lots*15:29
I only did solo work on git till now, now I m doing a collaborative work15:30
arcatech joined15:31
fstd left15:31
teut ok so teut 20:57:52 I never have used merge , is not true15:31
fstd joined15:31
FFY00 left15:31
arcatech left15:33
vladoski left15:34
fstd left15:36
fstd joined15:36
xiongxin8802 left15:36
Guest67 left15:37
madewokherd joined15:39
Murr left15:40
Murr joined15:40
fstd left15:40
fstd joined15:41
jazzy2 left15:41
Theguest joined15:45
fstd left15:45
fstd joined15:45
FFY00 joined15:48
va5c0 left15:48
hqdruxn08__ left15:49
hqdruxn08__ joined15:49
va5c0 joined15:50
fstd left15:50
fstd joined15:50
natrys joined15:51
teut I did git fetch --all15:54
then I rebased a pull request15:54
now I want to reject the fetch, how to do it?15:54
then I rebased a pull request , <---- this I did on github with the green button15:55
fstd left15:55
fstd joined15:55
Arokh left15:55
teut I want to pull the latest15:56
elibrokeit What does "reject a fetch" mean?15:57
teut to what I know git pull is a shortcut of git fetch + git commit15:57
Samian joined15:57
elibrokeit Fetch is "look at what the remote has done lately"15:58
another| "In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD."15:58
speckz left15:58
teut oh sorry, not git commit but git merge15:58
elibrokeit If you get up in the morning and look outside the window, then see it's a beautiful day. How do you "reject looking out the window"?15:58
teut yes , I get it, so if I do git pull15:59
elibrokeit You could do it by inventing a mind-wiping device and removing your own memories I guess.15:59
another| fetch is basically "download stuff from the remote but don't do anything with it"15:59
teut it will fetch again from github and modify my local15:59
AnapodoPsalidaki left15:59
fstd left16:00
elibrokeit But you can't change the sky, and you can't tell git "no, pretend the remote is different"16:00
fstd joined16:00
docmax_ joined16:00
elibrokeit You can, however, do whatever you want with the commit hash of the remote (or the recollection of what the remote used to be)16:00
None of your local anything got modified, only the little notebook that keeps track of what the remote is doing16:01
teut thinking16:02
hey wait, I didnt tell git about remote16:02
I only have added my remote, I didnt add the other person's remote16:02
docmax left16:02
teut did it got automatically added when I accepted a pull request from him previously?16:03
elibrokeit No16:03
Git doesn't know what a pull request is.16:03
It also definitely doesn't know what github is16:04
fstd left16:04
elibrokeit I suppose some non-git software (github desktop? IDK) might do what you suspected though16:04
fstd joined16:04
elibrokeit I wouldn't have any clue.16:04
elibrokeit does not use github desktop or other non-git software to interact with git repos16:05
elibrokeit Oh, I guess that's a lie, I do use `hub`16:05
Soliton there is git request-pull.16:06
imMute Soliton: different kind of PR16:07
elibrokeit That's not a pull-request16:07
That's an RP, not a PR16:08
Soliton sure, it's nothing like what github calls a pull request.16:08
elibrokeit It's also not even named the same thing.16:08
durham joined16:08
elibrokeit It's like saying "okay, there isn't a pull-request, but there is a git-worktree, it's nothing like the former though"16:08
dege left16:08
Arokh joined16:09
fstd left16:09
fstd joined16:09
fflam joined16:09
Soliton well, i'll assume you know about the command then and will leave you to the semantic games.16:12
vaucouleur left16:12
va5c0 left16:12
computeiro joined16:12
fstd left16:14
fstd joined16:14
fstd left16:18
fstd joined16:19
fstd left16:23
fstd joined16:24
fflam left16:25
theoceaniscool left16:26
ormaaj2ormaaj16:26
fflam joined16:26
m0viefreak joined16:27
lalitmee__ joined16:27
FH_thecat joined16:27
fstd left16:28
fstd joined16:28
Vonter joined16:29
lalitmee_ left16:29
Vonter left16:30
dminuoso left16:30
vicfred joined16:32
Vonter joined16:33
fstd left16:33
fstd joined16:33
fstd left16:38
fstd joined16:38
Vonter left16:39
christall left16:41
christall joined16:42
fstd left16:42
fstd joined16:43
merethan left16:45
Vonter joined16:45
christall left16:46
christall joined16:47
fstd left16:47
fstd joined16:47
FFY00 left16:48
Niklas36 joined16:49
computeiro left16:51
computeiro joined16:51
fstd left16:52
fstd joined16:52
FFY00 joined16:54
Niklas36 Hi, I have a bunch of local commits. One of the first of these commits mistakenly includes an API token for a service. Is there a way to edit a line in an earlier commit (but keep the rest of the changes)?16:54
teut thanks elibrokeit16:57
fstd left16:57
fstd joined16:57
gast0n joined16:58
timmcg joined17:00
docmax_docmax17:00
pflanze left17:01
pflanze joined17:01
fstd left17:02
fstd joined17:02
Soliton !filter_sensitive17:06
gitinfo You can use filter-branch to remove sensitive data from a repository's history. https://help.github.com/articles/remove-sensitive-data/17:06
fstd left17:06
fstd joined17:07
Ballerburg9005 left17:07
meator joined17:07
Soliton Niklas36: if you haven't pushed the commits you can do an interactive rebase and just drop the commit.17:08
pflanze left17:09
pflanze joined17:09
Niklas36 Thank you Soliton that helped a lot :)17:09
fstd left17:11
gast0n left17:11
fstd joined17:11
Niklas36 left17:11
jyg joined17:12
gast0n joined17:12
jyg I'm trying to parse the output from a pull, but it's really vague. I specifically would like to be able to discern which files were added, which were updated, and which were deleted. These identifications will fire off other, external processes.17:14
yuljk left17:14
pflanze left17:15
jyg Even if it is a two part solution, such as get the two commits from the pull output and then do a git log or something.17:15
skapata joined17:15
skapata left17:15
skapata joined17:15
yuljk joined17:16
fstd left17:16
gnoo jyg: have you tried git pull --stat ?17:16
fstd joined17:16
jyg gnoo, yes, I'm testing with it right now. Making changes in a test repo and seeing the output. But, it doesn't seem to offer enough distinction between those operations to really tell. Or, I'm not seeing it17:18
imMute doing stuff on 'git pull' seems fragile. like what happens if the merge results in a conflict?17:18
jyg imMute, no doubt you are right. I have a Shibboleth admin who I am desprate to get off of subversion. All I need to do is replace the parts in his arcane shell script so that it works with git instead...17:19
imMute, he can have such issues with either VCS... not my problem ;)17:20
tejr left17:20
fstd left17:21
fstd joined17:21
elibrokeit jyg: https://github.com/eli-schwartz/dotfiles/blob/master/.config/git/config#L3017:21
jinsun joined17:22
elibrokeit You can do a git diff of the revision from before the pull and the revision of now, or diff-index, or any other command to programmatically parse two commit hashes17:22
I use it via an alias to recreate the human-readable stat+summary which git pull also shows17:23
jyg elibrokeit, wow...17:23
This is great stuff. Thanks for sharing. Going to spend some time mulling over it17:24
elibrokeit But, you probably want to use git diff --name-status to get the filenames and a letter indicating why it changed17:24
As that is a bit easier to parse ;)17:24
See https://git-scm.com/docs/gitrevisions#Documentation/gitrevisions.txt-emltrefnamegtltngtemegemmaster1em for more details17:26
fstd left17:26
fstd joined17:26
furrymcgee left17:26
elibrokeit Man gitrevisions has a *lot* of really cool ways to refer to refs, and is well worth reading.17:26
zumba_addict left17:27
jyg yessss... --name-status is the key17:27
If only pull had that17:28
But that's cool, just two commands instead of one.17:29
elibrokeit You may also want to use -z to make the output be NUL terminated instead of doing path munging in some cases17:29
jyg Thank you so much... I cannot wait to shut that svn server down. He's like the grumpy last homeowner from Up :)17:29
elibrokeit Although "people who use normal filenames don't need to worry about newlines and unprintable characters and G-d knows what in their filenames" and all that.17:30
gnoo left17:30
fstd left17:30
fstd joined17:30
meator left17:32
vladoski joined17:33
fstd left17:35
fstd joined17:35
imMute elibrokeit: normally, I'd agree with that, but unicode exists and languages that don't use latin alphabets also exist17:36
batrick joined17:39
elibrokeit Not saying I agree with that quote about normality! I prefer to write robust scripts on principle.17:39
AnAverageHuman left17:39
elibrokeit The people who do say it without joking, would argue that ASCII is next to godliness in the dictionary and only ASCII constitutes normal filenames...17:40
fstd left17:40
cliluw left17:40
Murr left17:40
Murr joined17:40
jyg lol17:41
elibrokeit I guess they believe non-english content should stick to file contents?17:41
jyg I feel like such a shit stirrer :D17:41
elibrokeit Kind of unfortunate for non-americans.17:41
jyg: nah, we are the ones who went on a total tangent :D17:41
Notgnoshi left17:42
subopt joined17:42
Notgnoshi joined17:42
elibrokeit Anyway my mission is done as long as I point out the potential concern and let the questioner decide whether to care about foreign languages and other inconveniently non-ASCII filenames17:43
fstd joined17:43
teut if master and another branch diverge, then you rebased "another" onto master, now master and all commits on other branch are there17:43
is there a possiblity of merge conflict in this?17:44
elibrokeit Correct, when you rebase "another" onto "master" you copy all the commits from "another" and add them to "master"17:44
teut scenario17:44
yes cherry pick all commits17:44
elibrokeit And sure, they can conflict, if their divergent commits both edited the same lines of the same file17:44
teut oh ok that actually is the case17:44
but I did not get conflicts17:45
AnAverageHuman joined17:45
teut thats shocking17:45
vicfred left17:45
elibrokeit Sometimes git is smart e.g. if they made the same change then it can tell you don't need to do anything more.17:45
teut since master was already ahead of divergence point git wont be able to link those ahead commits with the cherry picked17:46
they change full 1 file17:46
changed*17:46
elibrokeit git cherry-pick -x17:46
Will add links17:46
teut someone told me earlier git rebase is just git cherry pick all commits17:47
elibrokeit Specifically it adds "cherry-picked from commit X" style comments to the commit message, and those commit hashes are links in most repository browsers.17:47
fstd left17:47
fstd joined17:48
docmax left17:48
onizu left17:48
elibrokeit Yes, git rebase is essentially that.17:49
tang^ left17:49
onizu joined17:51
jumpcutking joined17:51
tang^ joined17:51
kenyon joined17:52
Ballerburg9005 joined17:52
jsvcycling joined17:52
Puyo joined17:52
fstd left17:52
fstd joined17:52
vladoski left17:52
elastic_dog left17:53
Haohmaru left17:54
elastic_dog joined17:54
fstd left17:57
fstd joined17:57
vladoski joined17:59
jyg left18:00
AnAverageHuman left18:00
AnAverageHuman joined18:00
jetchisel left18:01
fstd left18:02
fstd joined18:02
DvdKhl joined18:05
bongobrown joined18:06
lantech19446 how do i change my username and password on a local repo just for that one repo?18:06
fstd left18:07
fstd joined18:07
vladoski left18:07
teut so I also squashed last 2 commits, one was the latest commit from the other guy and before it was mine, so I put a "s" on his commit in interative rebase, now what did this thing do?18:08
vladoski joined18:08
teut it melds the commits18:08
thats what I know18:08
so he had wriitten the style="color:'blue'" and I had style="color:'#fgfjhj'" in a line18:09
and I got no conflict18:09
jimklimov joined18:11
fstd left18:12
fstd joined18:12
jimklimov2 left18:14
imMute lantech19446: that depends on what credential helper you're using.18:15
lantech19446 I'm just using git via git bash18:15
imMute what kind of URL are you using for the remote? SSH? https?18:16
fstd left18:17
fstd joined18:17
lantech19446 https18:17
and I did it at home but i can't remember how18:17
jetchisel joined18:18
imMute ok I've never used HTTPS before, but I thought it normally just asked for the credentials when you push/fetch18:18
lantech19446 it does18:19
but for some reason it's got them stuck in this one18:19
imMute oh. so just enter the credentials you want to use. there's nothing to "change"18:19
lantech19446 it's not asking me18:20
srinidhi left18:20
lantech19446 that's the problem18:20
imMute what does 'git config credential.helper' output?18:20
lalitmee_ joined18:21
lantech19446 manager-core18:21
fstd left18:21
fstd joined18:21
srinidhi joined18:22
imMute ah, that's a Microsoft one. https://github.com/microsoft/Git-Credential-Manager-Core/blob/main/docs/configuration.md might be useful18:22
kapil left18:23
lalitmee__ left18:23
lantech19446 no such luck, the command they have to get me prompted doesn't do anything. Maybe i'll remove origin and add ssh origin instead18:24
kapil joined18:25
sniperwolf left18:26
fstd left18:26
fstd joined18:26
lantech19446 ok ssh worked which you pretty much told me it would in the beginning. I guess i'll just go that route from now on18:27
daoudr joined18:27
imMute prefers SSH remotes, so that I can use an ssh-agent18:28
kapil left18:29
kapil joined18:30
Ballerburg9005 left18:30
fstd left18:31
fstd joined18:31
jyg joined18:34
fstd left18:36
fstd joined18:36
jetchisel left18:37
Betal joined18:38
odoood left18:39
fstd left18:41
fstd joined18:41
XV8 left18:42
jyg left18:44
XV8 joined18:44
sudoforge joined18:44
fstd left18:46
fstd joined18:46
dflick left18:48
dflick joined18:49
vladoski left18:50
fstd left18:50
fstd joined18:51
odoood joined18:51
Theguest left18:52
fstd left18:55
fstd joined18:55
bongobrown left18:58
fstd left19:00
fstd joined19:00
irrgit left19:03
fstd left19:05
fstd joined19:05
lgc joined19:06
hubble joined19:09
fstd left19:10
fstd joined19:10
jyg joined19:11
EvilDMP left19:13
Samian left19:13
EvilDMP joined19:13
fstd left19:14
teut left19:14
fstd joined19:14
vladoski joined19:15
jyg left19:15
onichomp joined19:17
vicfred joined19:17
fstd left19:19
fstd joined19:19
QtScripter joined19:20
EvilDMP left19:21
fstd left19:24
fstd joined19:24
FFY00 left19:24
vladoski left19:26
crimsonr0se joined19:28
fstd left19:29
fstd joined19:29
Wuzzy left19:30
Ballerburg9005 joined19:31
fstd left19:33
fstd joined19:33
fstd left19:38
ThorMojito left19:38
fstd joined19:38
Murr left19:40
Murr joined19:40
fstd left19:43
Samian joined19:44
SilverFox left19:50
ThorMojito joined19:51
crimsonr0se left19:52
FFY00 joined19:53
arcatech joined19:58
ekathva joined19:59
platta left20:08
Nalt joined20:09
Guest3635 joined20:09
ZacSharp joined20:10
rahl left20:14
rahl joined20:15
Wuzzy joined20:25
epolanski joined20:25
AnAverageHuman left20:27
ekathva left20:27
EvilDMP joined20:29
computeiro left20:33
Vonter left20:34
Guest3635 left20:36
EvilDMP left20:53
Lord_of_Life_ joined20:58
Lord_of_Life left20:58
Lord_of_Life_Lord_of_Life20:59
EvilDMP joined20:59
kingjulian joined20:59
maxs joined20:59
daoudr left21:00
orbyt joined21:01
orbyt left21:01
ThorMojito1 joined21:04
onichomp left21:06
onichomp joined21:06
ThorMojito left21:08
vicfred left21:08
madewokherd left21:10
gxt left21:13
gxt joined21:13
ano left21:14
hubble left21:16
ano joined21:17
hqdruxn08 joined21:18
dviola left21:19
velix joined21:19
velix Sorry for asking. How can I add branch v5.6 after downloading the shallow v5.7 only? `git clone --depth 1 --branch v5.7 https://github.com/torvalds/linux/`21:20
hqdruxn08_ joined21:20
hqdruxn08__ left21:22
hqdruxn08 left21:24
velix Ah forget it, I'll downoad it all ;)21:26
seems easier then messing around21:26
elastic_dog left21:30
ZacSharp29 joined21:30
Gurkenglas left21:32
ferdna joined21:33
elastic_dog joined21:34
ZacSharp left21:34
elastic_dog left21:35
elastic_dog joined21:35
srinidhi left21:36
odoood left21:37
AnAverageHuman joined21:37
Murr left21:40
Murr joined21:40
madewokherd joined21:40
Guest3641 joined21:41
jetchisel joined21:42
XV8 left21:43
jessj21:48
gh34 left21:48
arcatech left21:49
kingjulian left21:52
Nalt| joined21:56
m0viefreak left21:57
Nalt left21:59
odoood joined22:01
ZacSharp29ZacSharp22:05
FFY00_ joined22:06
palasso left22:08
Wuzzy left22:08
FFY00 left22:09
christall left22:09
christall joined22:10
natrys left22:10
rewrit3 left22:12
gioyik joined22:12
ThorMojito joined22:15
christall left22:17
ThorMojito1 left22:18
sargon joined22:21
Guest3641 left22:22
vicfred joined22:28
atrigent left22:29
jwillikers left22:30
odoood left22:30
Sazhen86 joined22:38
yuckey2d0 left22:38
lalitmee__ joined22:40
stkrdknmibalz joined22:42
christall joined22:42
lalitmee_ left22:43
rpb joined22:44
sargon left22:45
vysn left22:48
lalitmee__ left22:49
AnAverageHuman left22:49
AnAverageHuman joined22:50
gioyik_ joined22:51
christall left22:52
gioyik left22:55
Nalt| left22:56
elastic_dog left22:58
hbautista_ joined23:01
pizdets left23:03
lantech19446 what are potential reasons for git pull to say it's working but not update the files?23:03
acidsys left23:03
LSD joined23:03
pizdets joined23:04
LSD left23:04
acidsys joined23:05
Betal left23:05
EvilDMP left23:05
pflanze joined23:05
Sazhen86 left23:05
EvilDMP joined23:06
atrigent joined23:08
Betal joined23:09
sudoforge left23:15
pizdets left23:18
pizdets joined23:18
elastic_dog joined23:20
maxs left23:20
remyabel joined23:22
wickedjargon joined23:23
Ballerburg9005 left23:25
christall joined23:28
bradyt lantech19446: i'm a git newb, but what is evidence it's not updating the files?23:28
thiago_ joined23:28
bradyt *perpetual newb23:29
lantech19446 bradyt: after I pull I nano the index.html file and my changes aren't there23:30
bradyt what is output of git status?23:30
i guess it might say if <branch> matches <origin>/<branch>23:31
vdamewood For what it's worth, I (almost) never use git pull.23:31
bradyt me too23:31
lantech19446 bradyt: I fucked it all up so it's showing untracked files at this point23:31
bradyt i do git fetch and consider the commit graph23:31
lantech19446 git fetch didn't work either23:31
vdamewood Git fetch doesn't update the working direcctory.23:31
You need to git merge after doing git fetch to update your working directory.23:32
lantech19446 ok i'll keep that in mind, right now i'm getting kind of a concerning message it's telling me that the folder for my other site is untracked23:33
christall left23:33
bradyt you could add them, commit them to a branch just in case23:33
if i don't know why i have files there, and want to figure it out later, sometimes i just put them on an extra branch23:33
vdamewood lantech19446: Okay, so pick a problem to solve first.23:34
bradyt pros might use "stash"23:34
i rarely use stash23:34
vdamewood stash is all the fun of a temporary branch without having to make a temporary branch.23:34
bradyt "i was like, 'where'd he go?!', and he was like, 'where'd who go?!'!"23:35
lantech19446 well there's absolutely no reason for it to be tracking those files from outside of the directory i'm in right now and when i run git status in those repos it says it's clean and nothing to commit23:35
bradyt top gun reference23:35
elastic_dog left23:35
bradyt lantech19446: okay, but you can just save them to an auxiliary branch and figure it out later23:35
yeah, i guess we're at, "pick a problem"23:36
lantech19446 i've never seen it do this before it's kind of odd23:36
bradyt i guess i would recommend getting comfortable with navigating a commit graph23:36
which is maybe not a useful statement23:36
vdamewood lantech19446: So, which problem do you want to solve first?23:37
bradyt a changed .gitignore could be one source of surprise untracked files23:38
iiuc23:38
or maybe a commit that moves files23:39
wickedjargon left23:39
lantech19446 I've copied all the files to my desktop now so if something goes wrong I can get back up and running23:42
elastic_dog joined23:42
lantech19446 so apparently 2 of my files got written to /var/www I wonder if that's causing the issue23:44
it's the files for the site i'm having the problems with I must have fucked up somewhere23:45
epolanski left23:45
timmcg left23:46
lantech19446 yep it was being caused by stray files but now I have no idea if i still have a problem or not so i guess i'll have to come back23:47
DvdKhl left23:48
thiago_ left23:48
Codaraxis_ joined23:49
Codaraxis left23:53
gioyik joined23:53
gioyik_ left23:56
gumnos I have a daily cron job to `git pull -q >/dev/null` yet I'm getting output even when there's success ("Updating files: 100% (58/58), done"). How do I shush everything but errors? Using -q doesn't seem to cut it.23:57
it means my system mailbox keeps getting noise-messages when I've told git to be quiet23:58
bremner this seems like a question for #bash23:58
or whatever your shell is23:59
did you try redirecting stderr?23:59
gumnos I can redirect stderr, but then I suppress any actual errors (which I do want)23:59

Logs Search ←Prev date Next date→ Channels Documentation