IRCloggy #git 2019-01-23

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.

2019-01-23

TheRuckus left00:03
finalbeta left00:03
ryjmryjm[payon]00:05
abraxxas joined00:10
sanscoeu_ left00:13
fission6 joined00:17
mat001 left00:19
yyy joined00:23
akushner left00:23
Eryn_1983_FL left00:26
courrier left00:26
courrier joined00:27
Eryn_1983_FL joined00:27
mitchell left00:28
andyhuzhill joined00:28
cfoch left00:29
AtumT left00:30
mat001 joined00:30
mikecmpbll left00:30
Eryn_1983_FL left00:30
rkazak joined00:31
Eryn_1983_FL joined00:33
sanscoeur joined00:33
yyy left00:34
Zexaron left00:39
fission6 left00:40
n3wborn left00:40
LionsMane left00:41
CryptoDavid left00:42
andyhuzhill left00:43
andyhuzhill joined00:43
andyhuzhill left00:47
andyhuzhill joined00:48
blackmesa left00:51
gitu left00:52
rkazak left00:54
TheRuckus joined00:56
TheRuckus left01:01
jleclanche joined01:06
metrixx left01:06
sitaram joined01:08
alyptik left01:12
agowa338 left01:14
\void left01:14
nurdie joined01:15
atrigent joined01:17
nurdie left01:19
sammyo joined01:23
perrier-jouet joined01:25
cagmz left01:25
mat001 left01:25
mat001 joined01:27
keepLearning512 joined01:27
mat001 left01:27
ferdna joined01:27
mat001 joined01:28
mat001 left01:28
mat001 joined01:28
thinkpad left01:29
remcycles joined01:29
TikityTik left01:30
thinkpad joined01:30
m0viefreak left01:30
jgkamat joined01:31
TikityTik joined01:32
Sasazuka left01:40
waterCreature joined01:40
waterCreature hi, git diff checksum checksum~ is giving me - and + for the entire file.01:41
any idea how to resolve this?01:41
TikityTik waterCreature: does it look like the same text?01:44
akushner joined01:47
kadoban left01:47
rgb-one joined01:48
rgb-one Hey01:48
Can one launch the default git editor (graphical editor) dettached from the terminal on a git commit?01:48
mostym Hey all. I'm pretty sure I f'd up. I updated some files, then commited, updated some more files, then commited again. Then I did git rebase -i HEAD~2, changed pick to drop on both commits and thought that would remove the commits... I was wrong. Now any changes I make do not get listed in any commit. and it's always saying it's up to date, even though I just made new changes.01:50
prakashdanish joined01:58
abraxxas left02:00
darkbit joined02:00
acidjnk left02:03
igemnace joined02:05
F0rTex left02:07
F0rTex joined02:08
boombatower left02:08
finalbeta joined02:09
rick8024 joined02:10
KnoP left02:11
rick8024KnoP02:11
andyhuzhill left02:13
darkbit left02:13
andyhuzhill joined02:13
remcycles left02:16
andyhuzhill left02:17
andyhuzhill joined02:18
[Brain] left02:20
sanscoeur left02:26
esrse joined02:29
rgb-one left02:31
alyptik joined02:31
prakashdanish left02:33
fragamus left02:33
cd joined02:36
aLeSD_ joined02:37
aLeSD left02:38
Nokurn left02:45
Wetmelon joined02:46
jungsubk joined02:46
xall joined02:50
n000g left02:54
n000g joined02:54
getSomethingGood joined02:55
stitched_unicorn joined02:56
Arcaelyx left02:56
supernovah is there a manual way to merge02:57
like i've got two branches that are a divergance of the same one and need to select and pick code to allow in02:57
tried using a custom merge driver but it still auto-merges unmodified files from the 'theirs' side02:58
floraline joined02:58
keepLearning512 left03:00
TheRuckus joined03:00
TheRuckus left03:04
cdown joined03:04
Livery joined03:10
gitinfo set mode: +v03:11
Livery (new-ish to git...) I have two branches and one contains commits from the other (somehow?? not even sure how.), neither on master. How would I remove them from one branch while keeping them in the other? They're not on the top of the commit stack, which is where my problem (kinda) lies.03:14
reset won't do for this, because of that. any ideas? I don't want them removed from both branches, just one, where they shouldn't be anyway.03:15
andyhuzhill left03:18
andyhuzhill joined03:18
reveller left03:19
gitinfo left03:19
andyhuzhill left03:23
andyhuzhill joined03:23
stitched_unicorn left03:24
andyhuzhill left03:27
andyhuzhill joined03:28
Valeyard joined03:31
GreenJello left03:32
GreenJello joined03:33
ferdna left03:33
GreenJello left03:34
GreenJello joined03:35
jleclanche left03:35
GreenJello left03:38
prakashdanish joined03:38
gun1x left03:39
GreenJello joined03:39
mat001 left03:39
velix left03:41
Valeyard left03:41
niko left03:43
Redramblesredrambles03:44
lagothrixGuest6207103:46
lagothrix joined03:46
prakashdanish left03:47
Guest62071 left03:49
jast left03:49
prakashdanish joined03:49
buzzlewoo joined03:50
foul_owl left03:50
Khisanth left03:57
cliluw left03:59
cliluw joined04:01
foul_owl joined04:03
jast joined04:04
buzzlewoo left04:05
Goplat joined04:07
Khisanth joined04:10
bwn joined04:13
jast left04:13
jast joined04:15
cliluw left04:16
buzzlewoo joined04:18
Kaisyu joined04:20
cliluw joined04:21
stitched_unicorn joined04:21
mona_x joined04:27
Mattiaslndstrm left04:27
pionen joined04:30
floraline left04:32
bwn left04:34
gitinfo joined04:37
ChanServ set mode: +o04:37
Wetmelon left04:39
veegee left04:42
gitinfo left04:42
\void joined04:42
jast left04:42
alyptik left04:43
jast joined04:43
gitinfo joined04:45
ChanServ set mode: +o04:45
atrigent left04:45
fakenerd joined04:46
bwn joined04:47
jungsubk left04:49
agowa338 joined04:50
kadoban joined04:52
gitinfo left04:56
stitched_unicorn left04:56
snowgoggles left04:57
locrian9 joined04:58
jast left05:00
agowa338 left05:01
jast joined05:02
pks_ joined05:02
ngui joined05:02
mizu_no_oto joined05:03
pks left05:03
pks_pks05:03
dreiss joined05:03
courrier left05:03
alyptik joined05:06
nurdie joined05:12
stitched_unicorn joined05:13
gitinfo joined05:16
ChanServ set mode: +o05:16
orbyt_ left05:17
andyhuzhill left05:18
irrgit left05:18
andyhuzhill joined05:18
stitched_unicorn left05:18
getSomethingGood left05:20
stitched_unicorn joined05:22
andyhuzhill left05:22
andyhuzhill joined05:23
donofrio left05:25
Inline left05:25
ghost43 left05:27
ghost43 joined05:27
troyt left05:28
stitched_unicorn left05:29
xall left05:29
metrixx joined05:29
jast left05:30
Livery left05:30
navidr joined05:31
jast joined05:32
bwn left05:33
apoos_maximus joined05:40
jast left05:41
apoos_maximus left05:41
apoos_maximus joined05:41
mizu_no_oto left05:44
jast joined05:45
thebope joined05:46
awalvie_ joined05:46
atrigent joined05:49
troyt joined05:52
tsdh joined05:54
jast left05:57
awalvie_ left05:57
jast joined05:57
Nokurn joined05:58
veegee joined06:05
nurdie left06:05
mostym left06:05
nurdie joined06:05
sammyo left06:06
freeman42x left06:06
bwn joined06:08
nurdie left06:09
toothe Hi all. I just merged a pull request into my tree. I see a merge commit, which I wasn't expecting.06:10
This might be a github-specific question...but did I Make a mistake?06:10
buzzlewoo left06:10
gitinfo left06:12
apoos_maximus left06:17
gitinfo joined06:21
ChanServ set mode: +o06:21
n3wborn joined06:22
andyhuzhill left06:23
thiago toothe: no06:23
toothe: github creates those commits06:23
equivalent to git merge --no-ff06:23
andyhuzhill joined06:23
\void left06:23
inkbottle joined06:25
andyhuzhill left06:27
gitinfo left06:28
andyhuzhill joined06:28
mona_x left06:29
jast left06:29
toothe darn.06:30
thiago left06:31
fdwh joined06:32
andyhuzhill left06:32
fdwh i have removed a feature branch of mine in local and as well as in remote06:32
mfiano joined06:32
fdwh is there a way to get that back?06:32
i remember the branch name06:32
could someone tell me how to find it06:33
andyhuzhill joined06:33
mfiano Is there a GitHub Web Hook replacement for the GitHub Service for IRC commit notifications yet?06:33
GreenJello left06:35
LordRyan mfiano: i have a friend who has a bot for it06:36
jes<tab><tab><tab> nope not here06:36
but if you query jesopo she'll set it up for you06:37
or https://github.com/jesopo/bitbot and try setting it up yourself06:37
sanscoeur joined06:40
jast joined06:43
inkbottle left06:44
inkbottle joined06:45
mat001 joined06:48
gitinfo joined06:49
ChanServ set mode: +o06:49
kapil____ joined06:53
R2robot left06:54
thebope left06:54
thebope joined06:54
dreiss left06:56
gitinfo left06:56
random_yanek left06:56
pionen left06:56
thebope left06:59
jast left06:59
awalvie_ joined07:00
R2robot joined07:02
random_yanek joined07:03
awalvie_ left07:05
awalvie_ joined07:06
Phylock joined07:06
andyhuzhill left07:08
andyhuzhill joined07:08
andrzejv joined07:09
aLeSD_ left07:10
mona_x joined07:11
libertyprime left07:12
gitinfo joined07:12
ChanServ set mode: +o07:12
andyhuzhill left07:12
andyhuzhill_ joined07:13
apoos_maximus joined07:15
andyhuzhill_andyhuzhill07:17
YuGiOhJCJ joined07:17
andyhuzhill_ joined07:18
renich left07:20
igemnace fdwh: good news is that branches are just references; all the commits are still there07:21
jast joined07:21
igemnace fdwh: bad news is that you'll have to look for the commits yourself. check the reflog, or perhaps you remember what commit that branch was on last. then just recreate the branch07:21
andyhuzhill left07:22
akushner left07:22
andyhuzhill_andyhuzhill07:22
andyhuzhill left07:22
sQVe joined07:22
andyhuzhill joined07:23
xrexeon joined07:24
xrexeon left07:24
mat001 left07:24
xrexeon joined07:25
xrexeon left07:28
xrexeon joined07:28
xrexeon left07:28
inkbottle left07:29
locrian9 git format-patch question... I have two files in a git initialized directory named 'file1.txt' and 'file2.txt'. Simply the 'file1.txt' has these three lines in the file: line#1=one, line#2=two, line#3=three. The 'file2.txt' has three lines in it: line#1=apple, line#2=banana, line#3=cherry. Each line in the files is commited separately. Basically was trying to find out if 'git format-patch' can create a07:30
single patch file that can be executed on two newly created empty files 'file1.txt' and 'file2.txt' and it would insert the 3 X lines into each file. Here's the output of 'git log' so maybe someone can give me the 'git format-patch' syntax that I have to issue in the git initialized directory. https://ptpb.pw/RNhl The current head is: 7b0c15307:30
TikityTik left07:31
TikityTik joined07:33
jast left07:34
locrian9 I am trying to setup patches in a package build utility for Linux Arch, where it automatically downloads the source, and runs patches on the source before creating the binary. I saw another user with some single git format patches that seem to patch two files, so I was wondering if he manually put these two patches into the same file, or if this was created by the git format-patch command somehow. That's07:36
the reason for the simplified example above.07:36
dreiss joined07:37
pfleck joined07:40
apoos_maximus left07:43
Goplat left07:46
pfleck left07:47
foul_owl left07:49
dege joined07:51
foul_owl joined07:52
keepLearning512 joined07:54
alex_pa joined07:54
chele joined07:56
andyhuzhill left07:58
foul_owl left07:58
tsdh locrian9: I think in your use-case, you just want a patch and no git-patch (including metadata like author, commit message), right08:02
?08:02
jast joined08:03
andyhuzhill joined08:03
dreiss left08:04
forrestv joined08:06
forrestv left08:06
andyhuzhill left08:07
gitinfo left08:08
andyhuzhill joined08:08
dminuoso joined08:08
Makaveli7 joined08:10
interrobangd joined08:11
awalvie_ left08:11
foul_owl joined08:11
tsdh locrian9: I guess running multiple "git diff 'rev^!' >> combined.patch" for each commit rev you're interested in (in the order from old to new) might work.08:12
locrian9 tsdh: Sorry, I was on another screen. I'm back.08:13
inkbottle joined08:13
dminuoso Say I have a branch X that looks like `B3 <- B2 <- B1 <- A4 <- ...` and I want to rebase the last three commits onto another branch Y `A6 <- A5 <- A4 <- ... ` so that my branch `X` now looks: `B3 <- B2 <- B1 <- A6 <- A5 <- A4 ...`.08:13
My question now is: While I can just use a plain `git rebase X Y`, how would I specify the exact commit to rebase if I wanted to do so?08:14
That is, how do state "rebase this part of the branch starting at commit B1 from X onto commit A6 of branch X"08:15
That last X should have been a Y of course.08:15
bsaboia joined08:17
Silmarilion joined08:18
andyhuzhill left08:18
tsdh dminuoso: You could name A6 instead of Y which you probably know. But B1 is inferred by "all commits on X that are not in Y/A6".08:18
andyhuzhill joined08:18
forrestv joined08:18
crmaurei joined08:19
apoos_maximus joined08:20
_ikke_ dminuoso: You can use the --onto argument to specify where to rebase onto, then the base (the first argumetn) is the parent of the first commit you want to rebase08:20
andyhuzhill left08:22
andyhuzhill joined08:23
dminuoso _ikke_: So I can pass any <tree-ish> to either?08:24
_ikke_ yes08:25
comittish in this case, but comes down to the same08:25
dminuoso _ikke_: Ohh right, tree-ish would also allow for <rev>:<path> right?08:26
So how can I know whether git accepts a committish in some argument position or not?08:26
The documentation seems less than clear.08:27
_ikke_ Right, just think about what a certain command operates on08:27
git rebase works with commits, so it makes sense you give it a comittish08:27
a random tree does not make sense08:27
prakashdanish left08:28
Makaveli7 left08:29
prakashdanish joined08:31
Makaveli7 joined08:32
dminuoso _ikke_: well to me `git rebase` had this "figure things out automatically based on branches" feeling, so it seemed as if it asked for a <refname>.08:32
It didn't even occur to me that it could be a committish, which is why I didn't even try it.08:33
gitinfo joined08:34
ChanServ set mode: +o08:34
_ikke_ git rebase -i HEAD~5 works for example :)08:34
guardian hello, I'm a bit confused: git rev-parse --git-path hooks resolves to the global hooks path when it exists. It seems to contradict manual that says "Resolve "$GIT_DIR/<path>"08:34
dminuoso _ikke_: Oh.. point taken.08:34
guardian or maybe it's covered by the other part of the sentence that says "and takes other path relocation variables"?08:34
while not explicitly mentioning it?08:34
prakashdanish left08:37
_ikke_ guardian: Yes, I would assume that08:38
that's the case08:38
gitinfo left08:39
jast left08:40
dermoth left08:40
andyhuzhill left08:41
pfleck joined08:42
aw1 joined08:42
YuGiOhJCJ left08:43
andyhuzhill joined08:43
andyhuzhill left08:48
andyhuzhill joined08:48
manuelschneid3r joined08:52
blackmesa joined08:52
andyhuzhill left08:56
dermoth joined08:57
andyhuzhill joined08:58
libertyprime joined09:00
Silmarilion left09:01
moritz joined09:01
Silmarilion joined09:02
mikecmpbll joined09:03
Silmarlion_ joined09:04
pfleck left09:06
pfleck joined09:07
navidr left09:07
Silmarilion left09:07
blackmesa1 joined09:09
goiko left09:11
blackmesa left09:11
RustyShackleford left09:15
heftig left09:15
Silmarlion_ left09:17
lss8 joined09:17
Silmarilion joined09:18
pfleck left09:18
pfleck joined09:19
cdown left09:19
lss8 left09:20
venmx joined09:24
Puffball joined09:27
heftig joined09:30
yyy joined09:31
andyhuzhill left09:31
rewt left09:32
rewt`` joined09:32
SCHAPiE left09:33
rewt``rewt09:33
stitched_unicorn joined09:35
metrixx_ joined09:35
metrixxGuest3385109:35
prakashdanish joined09:36
Zexaron joined09:37
SCHAPiE joined09:37
fdwh left09:38
Guest33851 left09:39
kerframil joined09:40
elichai2 joined09:40
prakashdanish left09:43
kapil____ left09:43
MACscr joined09:45
prakashdanish joined09:45
Makaveli7 left09:47
pfleck left09:47
Makaveli7 joined09:47
blackntan joined09:49
blackmesa1 left09:49
gitinfo joined09:51
ChanServ set mode: +o09:51
guardian thanks _ikke_09:53
jast joined09:53
LogicAside left09:58
prakashdanish left10:02
jast left10:04
prakashdanish joined10:05
tsdh left10:06
LogicAside joined10:06
gxt left10:11
Puffball left10:11
alex_pa left10:14
stitched_unicorn left10:15
alex_pa joined10:15
alex_pa left10:15
alex_pa joined10:16
prakashdanish left10:17
alex_pa left10:17
catsup left10:17
alex_pa joined10:17
catsup joined10:17
Puffball joined10:18
catsup left10:18
catsup joined10:19
gitinfo left10:19
btree_ joined10:20
btree left10:20
gloomy joined10:21
gloomy Hi there10:21
prakashdanish joined10:21
goiko joined10:22
alex_pa left10:23
gloomy I fucked up a rebase and need some help recovering :-) So, a while ago I made a fork of a repository (https://github.com/Jermolene/TiddlyWiki5) in order to contribute to it. I worked on my branch for a relatively long time, made a pull request, and then rebased on upstream/master to remove conflicts. So far so good.10:23
alex_pa joined10:23
alex_pa left10:24
stitched_unicorn joined10:25
alex_pa joined10:25
alex_pa left10:26
gloomy But then I realised that the maintainer now required pull requests for documentation changes (which is what I was working on) to be made to a different branch than master, so I tried to change the base of my PR to that branch (see the PR: https://github.com/Jermolene/TiddlyWiki5/pull/3339 ). The problem is there were now commits from the `master` branch that got included in my pull request. Being a noob I tried to10:26
rebase again, this time on `upstream/tiddlywiki-com` - which didn't help anything.10:26
Kaisyu left10:27
alex_pa joined10:27
alex_pa left10:27
gloomy So now I have this list of commits: https://github.com/Jermolene/TiddlyWiki5/pull/3339/commits in which there are a bunch of commits that are not from me (I'm ldorigo), and I need to "remove" them from the PR. How do I do that?10:28
flashmozzg joined10:28
flashmozzg Hello. Is there an easy way to cherry-pick the range of commits and automatically squash them (preserving some sort of history message, i.e. at least log the squashed commit names)?10:29
gloomy I guess I could make a new branch and cherry-pick only my own commits ?10:30
aw1 gloomy, can't you do an interactive rebase and drop the commits that you don't want10:30
gloomy rebase on what?10:30
waterCreature left10:31
aw1 on the same branch to a previous commit10:31
gloomy (and yes I can probably do that - I just don't know how ;-) )10:31
aw1 git rebase -i HEAD~n (where n is large enough to include all the commits that you want to cover + 1)10:31
gloomy So just to make sure I understand: on my own fork, I do git rebase -i HEAD^36?10:32
ah, ok :) (you're faster at typing than me :p )10:32
zivanovicb joined10:32
aw1 yes. but please read up on interactive rebase first.10:32
gloomy yup. Will do10:32
Didn't even know you could rebase on current branch :]10:33
aw1 that is very nice. I am messy when I develop on personal branch. But before merging I rebase and clean up10:33
nowhere_man left10:35
nowhere_man joined10:37
gloomy So just to make sure I understand: If I have the commits with hashes mine01, mine02, mine03, notmine01, notmine02, mine04, mine05, I only need to do `git rebase -i mine03` and delete the lines that say "pick notmineXX" ?10:39
pfleck joined10:44
afuentes joined10:45
aw1 yes10:47
lss8 joined10:47
Noti joined10:48
aw1 gloomy, better to experiment in a copy branch first (git checkout -b dangerous_experiment mybranch)10:49
gloomy yup that's what I'm doing10:49
Kaisyu joined10:51
IZh joined10:53
apoos_maximus left10:53
IZh Hi! Is it possible to provide a path to a config file to 'git' command? I.e. command line oprion or environment variable like GIT_CONFIG?10:54
Moult joined10:55
gloomy Ok so I did the tests on the test_branch and it worked out, is there a simple way now to make my actual_branch into the test_branch, or should I just repeat the process on actual_branch?10:55
Moult i have forked a repo, and instead of creating a new branch to do my work for a PR, i have committed directly to master and pushed to my fork's origin already. how do i undo this mess?10:55
gloomy Moult What mess? If you open a PR on the upstream repository it doesn't matter if it's on the 'master' branch of your fork10:57
_ikke_ if you want to make multiple PRs, it better to keep master alone10:57
s/keep/leave/10:57
Moult _ikke_: oh hey _ikke_ long time no see10:57
_ikke_: yeah i know that was what i intended, to leave master alone, but i accidentally didn't :)10:58
GoGi Say I have two branches stable and unstable. Now I want to "backport" some fixes from unstable to stable. How can I add a commit to stable such that git knows that those changes do not have to be applied again when merging unstable later?10:58
Moult gloomy: yeah as _ikke_ suggests i want to make multiple PRs10:58
gloomy Can't you just make a new fork for that?10:58
Moult gloomy: i can, but next time i pull master to get in upstream's changes, my master is contaminated, so i can't branch off that10:59
gloomy: instead i'll need to, uh, i guess branch off master before i added my commits, then pull upstream into that branch, then all future PRs go from that new clean master branch?10:59
Makaveli7 left11:00
gloomy Or make a new branch from your fork's master (that includes your commits), then revert master to upstream/master I guess11:00
Moult gloomy: that sounds good, how do i do that?11:01
gloomy But probably wait for someone more experienced to give you advice as I just came here to fix my own mess :-)11:01
blackmesa1 joined11:01
gloomy probably something like `git checkout -b "your_branch_name"`, then `git remote update` and `git reset --hard upstream/master --`11:03
uh, first `git checkout master` before the `git reset`11:04
See here https://stackoverflow.com/questions/8134960/how-to-revert-master-branch-to-upstream11:05
Puffball left11:06
Moult gloomy: ah yeah, git push --force11:06
gloomy: that solves it :) should've used the duck-fu :)11:07
thanks for the help!11:07
IZh 11:07
IZh left11:07
gloomy :)11:08
And, aw1, I fixed my mess too, so thanks :-)11:09
aw1 congrats! :)11:09
pfleck left11:09
Makaveli7 joined11:10
locrian9 left11:17
pfleck joined11:19
Essadon joined11:20
kjartan left11:20
flashmozzg Hello. Is there an easy way to cherry-pick the range of commits and automatically squash them (preserving some sort of history message, i.e. at least log the squashed commit names)?11:20
Essadon left11:20
flashmozzg Basically something like cherry-pick tag1..tag2, rebase -i tag1, squash everything, but all automated11:21
Essadon joined11:21
apoos_maximus joined11:22
esrse left11:22
dminuoso flashmozzg: git rebase -i, then do some quick `:%s/pick/s/` in vim?11:22
osse flashmozzg: something like: git cherry-pick --no-commit tag1..tag2 && git commit -e -m "$(git log --format=%s tag1..tag2)"11:22
dminuoso I know its not exactly a git solution, but it is a solution.. :)11:23
_ikke_ Moult: hi11:23
kjartan joined11:23
aw1_ joined11:23
libertyprime left11:23
flashmozzg dminuoso: I't should be run by a script. No human interaction11:23
dminuoso Ah then osse's solution would work. :)11:24
flashmozzg osse: thanks, looks liek this could work. Does it produce the same description as default squash during rebase? (I guess I'll find out when I try ;P)11:24
aw1 left11:25
Essadon left11:25
Essadon joined11:26
MACscr left11:27
mona_x left11:27
MACscr joined11:28
yvz joined11:28
xcm left11:28
xcm joined11:29
yvz left11:32
yvz joined11:33
jubal_ joined11:33
atrigent left11:34
jubal left11:35
random_yanek left11:36
random_yanek joined11:38
KeyJoo joined11:44
lss8 left11:45
gxt joined11:47
osse flashmozzg: no11:49
the message is far from complete. if you want this automated thnen maybe something like: -m $'Squash of the following commits:\n\n'"$(git log ...)"11:50
stitched_unicorn left11:51
setre joined11:53
setre how can I begin tracking files hidden with "git update-index --assume-unchanged file11:53
_ikke_ git update-index --no-assume-unchanged <file>11:54
setre I tried git update-index --no-assume-unchanged but the files didn't appear11:54
not when I type git status anyway11:54
_ikke_ Are you sure they have differences11:54
setre yeah they do11:54
_ikke_ git ls-files -v <filename>11:55
setre it appears with an S in front of it11:56
_ikke_ That means skip-worktree11:56
brandonkal left11:56
_ikke_ so git update-index --no-skip-worktree <file>11:56
setre thanks!11:56
ch1pp0 joined11:59
Zexaron left12:00
lss8 joined12:05
Makaveli7 left12:06
lss8 left12:07
lss8 joined12:08
apoos_maximus left12:12
qswz joined12:16
qswz when I do: git log --format=%B origin/master..HEAD12:16
there are empty lines12:16
how to skip those?12:17
yvz left12:19
yvz joined12:19
mobile_c left12:20
qswz ok my end goal is to have a bash array of those commit messages12:20
mobile_c joined12:21
gitinfo joined12:22
ChanServ set mode: +o12:22
hofmann3900 left12:22
pfleck left12:24
nurdie joined12:24
yvz left12:24
mona_x joined12:26
yvz joined12:28
j416 qswz: --log-size is handy for parsing messages12:30
not sure whether or not you can easily make use of it in bash.12:30
_ikke_ j416: TIL12:31
j416 \^^/12:31
mobile_c left12:31
_ikke_ You probably can use head -c12:31
shabius left12:32
mobile_c joined12:32
j416 ah, yes. perhaps.12:32
shabius joined12:32
T_UNIX joined12:35
bluesmon1bluesmonk12:36
mobile_c left12:37
osse qswz: while IFS= read -rd '' msg; do msgs+=("$msg"); done < <(git log --pretty=tformat:%B -z origin/master..HEAD)12:38
the message always ends with a newline, though...12:38
prakashdanish left12:40
osse maybe you want --format=%s ?12:40
pfleck joined12:42
qswz thanks good point12:42
mapfile -t cs < <(git log --format=%s origin/master..HEAD); declare -p cs12:44
Noti left12:44
TJ- joined12:44
sylr joined12:45
blackmesa1 left12:46
sylr Hi12:46
Is there a way to have git describe format output using a semver convention ?12:47
v1.0.4-14-g66666f -> v1.0.4+14.g66666f12:47
mobile_c joined12:48
qswz that + is standard?12:48
I think - works too12:48
sylr To me the "-" represents tags before the v1.0.412:50
like v1.0.4-rc.112:50
I might be wrong though12:50
https://semver.org/#spec-item-1112:52
1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.12:52
012:52
karoshii Hey all - I'm running test.py against all commits on a repo. Runs on mine fine, but I've ran my pals and it's not picking up the latest 3 commits even though I can see them on github? Saying there's only 9 commits when there is infact 12 - anyone think of a reason that would cause this?12:53
Olipro joined12:54
lss8 left12:56
pfleck left12:57
karoshii ah, figured it out nvm.12:58
niko joined13:03
gloomy left13:05
Tawonga joined13:06
blackmesa1 joined13:09
prakashdanish joined13:12
gloomy joined13:12
irrgit joined13:13
inkbottle left13:15
soee joined13:17
soee hi if i rever merge that add 1 new commit to branch do i also have to revfer that commit or reverting merge is enpugh ?13:18
osse sylr: I think you have to either do search and replace, or build the string yourself.13:18
prakashd1 joined13:19
osse Even git.git does that13:19
I wish git-describe took a small format string13:19
prakashdanish left13:20
osse revert is enough13:21
cfoch joined13:22
blackmesa1 left13:24
blackmesa1 joined13:24
Noti joined13:26
kp__ joined13:26
pfleck joined13:28
courrier joined13:28
nurdie left13:29
nurdie joined13:30
donofrio joined13:30
blackmesa1 left13:32
dawik joined13:32
dawik hi... how do i reset/revert/checkout a whole directory to a specific specific?13:32
any of those would do13:33
osse dawik: git checkout commit -- dir13:33
dawik thank you -_-13:33
nurdie left13:34
sphalerite left13:37
fission6 joined13:37
prakashd1 left13:41
pfleck left13:42
carissimo joined13:44
nurdie joined13:49
jast joined13:50
jast sorry for another gitinfo downtime, I'm currently working on plans to migrate to different hosting infrastructure but it'll be a few days probably until I can get it done13:51
fakenerd left13:54
nurdie left13:55
CodeSlingerPaul joined13:55
sieve joined14:03
sieve I am creating new branches with git checkout -b <branch> but I need to check if I am getting a collision with origin.14:03
"git fetch —all" is not helping here14:03
n3wborn left14:04
jast sieve: do you want to check manually or in a script?14:05
sieve jast: in a script14:05
amosbird joined14:06
pfleck joined14:12
xcm left14:13
osse jast: i demand reparations14:14
xcm joined14:14
jast sieve: you can either: a) fetch and check `git rev-parse --verify -q refs/remotes/origin/mylittlebranch`; b) check whether this outputs anything: `git ls-remote origin refs/heads/mylittlebranch`14:15
osse: okay, I'll refund you 20% of this month's payments you made to me14:15
osse Sounds good14:16
jast done!14:16
osse hey waaaaaaaiiit a minute14:16
why you little..! {homer voice}14:16
tchan left14:16
jast you get what you pay for!14:16
sieve left14:21
ansyeb joined14:22
ansyeb hello. anyone using gitlab here? gitlab IRC channel is pretty much dead14:22
jast no promises we can help :)14:22
andrzejv left14:23
tmm88 joined14:23
ansyeb ) I am changing my gitlab-ci, syntax is fine it gets commited. but when i "retry" failed job it still tries to execute "old" actions14:23
as if it were using old gitlab-ci ..?14:24
blackmesa1 joined14:25
jesopo joined14:25
jast have you pushed the new CI config? normally that should automatically trigger a new build14:25
ansyeb well when I press commit changes, doesnt it automatically do that?14:28
it start a job that succeeds14:28
jast oh, you edited it directly on the gitlab website?14:28
yeah, that's the same as committing and pushing in a local repo14:28
mobile_c left14:28
jast anyway, AFAIK "retry" on a old job re-uses the old repo contents14:29
basicaly "repeat the exact same thing as before"14:29
mobile_c joined14:29
ansyeb so how do I test old job but with the new ci config?14:30
jast what's different in the old job, apart from the old config?14:30
ansyeb I guess nothing14:31
jast I don't think the idea behind gitlab's CI is to let you retroactively "fix" an old job14:31
other CI systems like Jenkins don't really do it that way, either... if a job failed, you fix stuff and then start a new job14:32
_ikke_ Right, you need to start a new job, the retry is more when external factors caused the build to fail14:32
coldaemon1coldaemon14:33
ngui_ joined14:33
ansyeb oh, ok14:34
czart joined14:34
ansyeb can I copy old job somehow?14:34
to quickly be able to start new ones etc14:35
jast I don't know, I've never used gitlab CI that way14:35
ngui left14:36
ngui_ngui14:36
sphalerite joined14:36
_ikke_ copying a job does not really make sense14:36
tchan joined14:36
_ikke_ You can manually start a job based on a certain branch or commit14:37
ansyeb kk14:37
yyy left14:41
yyy joined14:41
jungsubk joined14:42
keepLearning512 left14:44
staafl left14:47
SpeakerToMeat left14:47
KeyJoo left14:48
ansyeb ok, i have red https://docs.gitlab.com/ee/ci/pipelines.html and watched a video. still didnt get it. how do I start a job for a given branch?14:48
staafl joined14:48
_ikke_ A job starts when you push new changes to that branch14:48
ansyeb found pipeline with a number, that failed stage. I can press "retry" there too. and it still uses old config ....14:49
but what if I dont have any changes. can I emulate that? is that the only way to start a job?14:49
_ikke_ ansyeb: You can go to pipelines, there is a green button called 'Run Pileline'14:49
ansyeb is there a search?14:50
_ikke_ But like jast said, running the pipeline again with the same configuration and commit won't fix it14:50
search?14:50
ansyeb oh, then that makes no sence14:50
sense*14:50
I need to fix14:50
lacrymology joined14:50
ansyeb so only pushing new changes will creatre new job?14:50
and theres literally no other way to test new gitlab-ci.yml config??14:51
jungsubk left14:51
courrier left14:52
Noti left14:53
ansyeb I need to install git, make a repo clone on my machine etc etc?? all that to just fix the config lol?14:54
mikecmpb_ joined14:55
mikecmpbll left14:55
j416 where's gitlab-ci.yml stored?14:55
dawik isn't the config versioned?14:55
j416 ^14:55
so you'd need a new commit to update the config anyway.14:56
> From version 7.12, GitLab CI uses a YAML file (.gitlab-ci.yml) for the project configuration. It is placed in the root of your repository and contains definitions of how your project should be built. ( https://docs.gitlab.com/ee/ci/yaml/ )14:57
boombatower joined14:57
fakenerd joined15:04
rafalcpp left15:04
queip left15:04
gloomy left15:06
_ikke_ correct15:07
mobile_c_ joined15:08
jast ansyeb: no, editing the config on the gitlab website will create a commit there and should launch a job, too15:08
mobile_c left15:08
pfleck left15:08
ansyeb oh man15:11
I actually just pulled the project locally15:11
added a file, committed, git push origin BRANCH15:11
it gave me a link to gitlab15:11
I entered, made a "manual action"(accepted merge request?)15:12
aaaaand .. in log it still tried to use olg gitlab-ci.yml wtf15:12
yvz left15:12
gloomy joined15:12
ansyeb oh wait15:13
each branch has its own gitlab-ci.yml????15:13
_ikke_ more or less, yes15:13
ansyeb omg15:13
man15:13
that clarifies alot, but wow15:13
is it cloned from the main repo when branch is first created?15:14
_ikke_ There is not need for cloning15:14
no*15:14
when you create a branch, you start with the same set of files15:14
Then you make changes to files, which only happen on that branch15:14
so when you push that branch, it uses the .gitlab-ci.yml as it is in that branch15:15
but the one from master remains unchanged15:15
j416 ansyeb: each branch will have its own gitlab-ci.yml; when you create a branch it will get the same config as whatever branch you based it off of; if you merge a branch into another the config will merge too.15:15
_ikke_ untill you merge back15:15
ansyeb oh. thanks alot15:15
j416 ansyeb: it's just like any other file.15:15
ansyeb for the explanatinos15:15
fission6 left15:16
ansyeb so If I change that file now15:17
can I retry job for this branch?15:17
will it use the new one?15:17
Silenced joined15:17
tmm88 left15:19
sylr left15:21
_ikke_ If you change the file, commit it, and push that commit, yes it will use that version15:21
pfleck joined15:24
mns There is a new branch in the remote, and I want to check that out, how do I do that ? git checkout -b origin/new-brnach ?15:25
TJ- left15:25
rafalcpp joined15:25
ansyeb even without origin and -b it should work?15:26
fission6 joined15:27
_ikke_ git checkout new-branch15:28
is what ansyeb refers to15:28
apteryx left15:28
cswl joined15:28
TheRuckus joined15:29
T_UNIX left15:29
novum joined15:29
queip joined15:30
kjartan left15:31
TheRuckus left15:32
renich joined15:32
mns _ikke_: thanks. do I need to do a "git fetch" before the checkout ?15:33
TheRuckus joined15:33
_ikke_ if you didn't do that already, yes15:34
mns _ikke_: got it, thanks.15:34
gloomy left15:35
_ikke_ mns: note that this is git basically automatically guessing what you mean15:36
kjartan joined15:36
_ikke_ if you have more than one remote with the same branch name, it won't work for example15:36
darkbit joined15:37
mns In that case I would need to specify which remote I'm working with so it would be "git fetch ; git checkout remote/new-branch" ye s?15:40
_ikke_ no15:40
thiago joined15:40
_ikke_ git checkout -b new-branch remote/new-branch or git checkout -t remote/new-branch15:40
mns ahh ok15:41
fission6 left15:42
mns got it. thanks.15:42
_ikke_ git checkout remote/new-branch would checkout that commit (detached HEAD)15:43
blackmesa1 left15:44
keepLearning512 joined15:45
fakenerd left15:45
interrobangd left15:47
millerti joined15:47
gloomy joined15:47
Envil joined15:48
tmm88 joined15:49
yvz joined15:51
igemnace left15:51
fission6 joined15:51
moei joined15:52
mizu_no_oto joined15:53
sQVe left15:53
pfleck left15:54
pfleck joined15:54
keepLearning512 left15:55
tmm88 left15:56
GreenJello joined15:57
gloomy_ joined15:58
gloomy left15:58
novum left15:58
mizu_no_oto left15:59
jungsubk joined16:01
musclez joined16:02
jungsubk left16:04
fission6 left16:04
mona_x left16:05
apoos_maximus joined16:05
ansyeb @_ikke_, hard to believe but I fixed everything, all the branches, deploys etc. thank you guys16:07
fission6 joined16:07
_ikke_ ansyeb: \o/16:09
sanscoeur left16:10
LissajousPattern joined16:14
j416 \^^/16:15
jast left16:17
sieve joined16:17
LissajousPattern left16:20
jast joined16:20
cd left16:22
Toadisattva joined16:23
Toadisattva left16:24
jordanthedev joined16:25
AbleBacon joined16:25
orbyt_ joined16:26
cd joined16:26
Regon joined16:27
Silmarilion left16:29
gloomy joined16:30
gloomy_ left16:30
pfleck left16:31
Inline joined16:33
chele left16:34
Inline left16:34
thiago left16:34
Inline joined16:35
renichRenich16:37
Renichrenich16:37
al-damiri joined16:41
afuentes left16:42
Mattiaslndstrm joined16:42
pfleck joined16:45
cagmz joined16:45
mona_x joined16:47
lucasb joined16:51
\void joined16:51
cagmz I've branched off of master and commits A -> B -> C -> D. I'd like to create a new branch off of master containing only changes from commits C and D. How would I do this?16:53
_ikke_ Do you want C and D to also remaint in that first branch?16:53
GreenJello cagmz, you can make a new branch off master and cherry-pick the desired commits into it16:54
you just need their sha's16:54
nurdie joined16:55
cagmz _ikke_: yeah, I want the first branch to stay as-is16:55
_ikke_ then what GreenJello suggests16:55
gloomy_ joined16:59
Mattiaslndstrm left17:00
Revan- left17:00
gloomy left17:01
Revan- joined17:01
AtumT joined17:06
Mattiaslndstrm joined17:08
mooasaurus left17:09
mimajof joined17:11
tobiasBora Hello,17:13
I need in a script to simulate a fetch. So I would like to find a way to temporary work on another branch without disturbing the current work, is that possible?17:14
netj left17:14
tobiasBora I was thinking to use "git stack push" and "git stack pop" before/after my git checkout, but I don't know if it's the best way to proceed.17:14
netj joined17:15
pfleck left17:15
tobiasBora stash*17:15
jgkamat left17:15
tobiasBora However, I'm affraid to have "dirty cases" where the file that I may touch in the other branch may edit the file on the initial working directory...17:17
_ikke_ tobiasBora: a fetch does not touch 'local' ranches17:17
branches*17:17
tobiasBora _ikke_: ok, then maybe in fact this branch also simulate the fetch... But I'm not sure. To put thing easier, let's just say that I'd like my script to edit some other branch, and come back to the initial branch afterward, without modifying anything on the working tree17:19
mat001 joined17:19
blackntan left17:23
thiago joined17:23
cdown joined17:24
keepLearning512 joined17:25
fission6 left17:25
blackntan joined17:25
blackmesa1 joined17:25
mimajof Hello everybody, I need to install git 2.20.1 for Windows silently on some workstations and have two questions regarding the default installer: 1) can I somehow disable the installation of the (deprecated) git-cmd.exe? Didn't find any option in the grafical installer nor for the inf-file. 2) the Git-GUI isn't in system language (and I didn't find any 'msgs'-folder in the installation path. Is there support for languages other than english i17:27
n git 2.20.1 and how can I enable it?17:27
Revan- left17:27
blackmesa1 left17:29
Revan- joined17:29
remcycles joined17:30
gloomy joined17:30
blackmesa1 joined17:30
Kaisyu left17:30
gloomy_ left17:31
blackntan left17:31
sieve left17:33
blackntan joined17:34
blackntan left17:35
blackntan joined17:35
sieve joined17:36
blackntan left17:38
tobiasBora Ok, so I've an example where stash push/pop does not behave as expected17:39
If on master I create a file a.txt, and put some stuff inside17:39
but I don't add this file17:39
, after a git stash push, nothing happens17:40
git checkout myotherbranch17:40
va alors m'envoyer sur l'autre branche, et si je modifie a.txt + ajoute à cette branche, un git checkout master + git stash pop va me faire disparaitre le fichier17:40
musclez left17:42
dminuoso tobiasBora: You can use '--all' if you want to include absolutely everything, including untracked files17:42
mowcat joined17:42
tobiasBora dminuoso: where?17:42
on stash?17:42
flashmozzg Hello. Anyone familiar with git-p4?17:42
_ikke_ never used perforce, let alone git-p417:43
tobiasBora dminuoso: that works great thanks!17:44
mikecmpb_ left17:47
dex1983 left17:49
jrnieder joined17:51
fission6 joined17:52
sanscoeur joined17:56
sanscoeur left17:56
sanscoeur joined17:56
yyy left17:57
gloomy_ joined17:58
flashmozzg left17:58
benharri left17:59
mowcat left18:00
gloomy left18:00
ChrisLane left18:03
sanscoeu_ joined18:03
ChrisLane joined18:04
alyptik left18:05
cagmz Say I have commits A -> B -> C -> D on master. If I want to cherry pick C and D, does the order matter if they are atomic (not related to each other)?18:07
sanscoeur left18:07
BrainWork left18:08
dex198316 joined18:10
LionsMane joined18:11
gxt left18:11
BrainWork joined18:11
keepLearning512 left18:12
fission6 left18:12
yvz left18:12
tobiasBora Is it possible to force a git stash push even if no modification were made?18:12
wootehfoot joined18:13
LionsMane left18:14
dmc joined18:15
eset left18:15
dex198316 left18:20
TJ- joined18:23
courrier joined18:23
pfleck joined18:25
Nixew joined18:26
fission6 joined18:28
sieve left18:29
nedbat cagmz: you can cherry-pick them in either order18:30
leeN joined18:32
leeN left18:33
mimajof left18:33
apoos_maximus left18:34
venmx left18:34
_ikke_ tobiasBora: no, that does not make sense18:37
leeN joined18:37
qqx left18:39
inkbottle joined18:39
qqx joined18:39
pfleck left18:39
freeman42x joined18:40
dmc left18:42
mona_x left18:42
zivanovicb left18:43
brainproxy joined18:43
pfleck joined18:44
dmc joined18:46
kerframil left18:48
nedbat tobiasBora: tell us more about why you'd want an empty stash?18:50
sauercrowd joined18:52
r1ch joined18:52
mona_x joined18:52
gxt joined18:53
Siecje joined18:55
Siecje How do you specify a file has been moved when you have also modified it.18:55
libertyprime joined18:55
Darcidride joined18:56
j416 you don't18:56
if you move it first, commit that, then modify it, that'll give git a better chance at figuring out it was moved.18:57
osse changing a few lines should be ok. for example if the file has some relative paths in it18:57
j416 if you modify it just a little then that'll be fine mostly. You can specify the rename detection threshold using the -M flag for git-diff and friends.18:57
osse any way, to answer the question: git mv18:58
Siecje Well I commented out a large part of it.18:58
AtumT left18:58
sauercrowd left18:58
j416 then that'd probably mess up the rename detection a bit18:58
try making logical commits18:58
remarking code and renaming a file seems like two separate things.18:58
AtumT joined18:59
TheRuckus left19:00
ngui_ joined19:01
sauercrowd joined19:02
quite left19:03
ngui left19:03
ngui_ngui19:03
quite joined19:04
Sasazuka joined19:04
akushner joined19:07
Regon left19:09
AtumT_ joined19:12
AtumT left19:13
wadadli how do I move the base of a branch to be a new commit?19:15
AtumT joined19:15
wadadli say I was workin gon a branch, did some prs and then merged it19:15
if I go do further work on that branch and then open a pr it has all the commits.19:15
I wanna move the base of the branch to be the HEAD on master19:16
_ikke_ git checkout <branch>; git merge --ff-only master19:16
AtumT_ left19:17
wadadli hm..19:17
AtumT left19:18
manuelschneid3r left19:18
manuelschneid3r joined19:18
AtumT joined19:19
furrymcgee left19:19
BrainWork left19:19
manuelschneid3r left19:22
errst joined19:22
errst hi everyone19:22
gitinfo errst: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.19:22
plexigras joined19:22
manuelschneid3r joined19:22
errst how can i see only commit differences between two branches? e.g., which commits that i've in develop but not in the master branch19:23
aw1__ joined19:23
aw1__ left19:24
errst i've tried git log but it didnt work for me19:24
_ikke_ git log --oneline master..develop19:24
Arcaelyx joined19:24
errst at work, we do git rebase and when we'd like to deploy changes we do cherry pick from develop to master19:25
_ikke_, it didnt work, i've saw multiple same commit messages when doing so19:25
aw1_ left19:26
mra90 joined19:26
errst i've tried git log --no-merges develop ^master, again it didnt work19:26
Trieste left19:26
_ikke_ 9Is your history that complex?19:27
bwn left19:27
errst yes _ikke_19:27
alyptik joined19:27
r1ch left19:28
Trieste joined19:29
pfleck left19:30
kerframil joined19:33
r1ch joined19:33
gthm left19:33
dilfridge left19:35
kerframil left19:38
dilfridge joined19:38
AtumT left19:38
czart left19:39
pfleck joined19:41
gxt left19:42
mikepack joined19:42
mikepack left19:43
AtumT joined19:44
gxt joined19:44
bluesmonk left19:44
Dougie187 joined19:45
tobiasBora _ikke_: nedbat : Well I would like to do an empty stash for the following reason:19:45
libertyprime left19:46
tobiasBora I have an external website that I need to follow, but with "as it" it does not provide a git bridge19:46
Envil left19:46
AtumT left19:47
AtumT joined19:47
tobiasBora so the idea is to have a branch for this website, and when the user type a given command, my script stash everything, goes to the website branch, download the content from the website, add/commit it, comes back to the original branch, and stash pop to come back to the original state19:47
basteh joined19:48
nedbat tobiasBora: your script can check if there is anything to stash19:48
tobiasBora but there is a problem here: if nothing has been modified by the user, "git stash push --all" won't produce any stash, and therefore stash pop will either fail, or pop a wrong and older stash19:48
nedbat: I wanted to avoid to parse git command, but if it's the only solution I'll go for that19:49
nedbat: by the way what is the good way (I'm using GitPython if it can help) to check if "git stash push --all" will push something? I was thinking to first run "git stash list", then run the push, and run again with "git stash list" to see if anything changed, but maybe there is a better way?19:50
nedbat tobiasBora: i would think a "git status" would be the way to see if files are changed19:50
inkbottle left19:51
nedbat tobiasBora: google indicates that this is what you want: https://gitpython.readthedocs.io/en/stable/tutorial.html#obtaining-diff-information19:51
LionsMane joined19:55
sanscoeu_ left19:55
tobiasBora nedbat: well it seems that this diff does not take into account the files that are not added in git already...19:56
sanscoeur joined19:56
libertyprime joined19:56
tobiasBora like git status gives me "Untracked files: hello.txt"19:56
alyptik left19:56
tobiasBora but r.index.diff(None) is []19:56
maybe repo.untracked_files19:57
inkbottle joined19:57
Mattiaslndstrm left19:58
tobiasBora So I guess that both "repo.untracked_files + repo.index.diff(None)" should be enough... But how can I be sure that I didn't forgot anything?19:58
grawity diff always ignores untracked files, but you can track placeholders with `git add --intent-to-add`19:58
xcm left19:59
xcm joined19:59
qswz left19:59
Silmarilion joined20:00
Mattiaslndstrm joined20:00
tobiasBora nedbat: another example where this does not work: "git mv" is not displayed in r.index.diff(None) but it seems to appear in repo.head.commit.diff(None)20:00
and actually I don't get the difference between the two files20:00
nedbat tobiasBora: i don't know much about GitPython20:01
cdown left20:01
nedbat tobiasBora: i know that git can be used from programs, and that you are looking for something like "git status"20:01
grawity `git status --porcelain`, if you're doing it from a script20:02
tobiasBora nedbat: Ok thanks. But maybe you can help me to understand the sentence "diff tree against working tree" vs "diff index against working copy"20:02
nedbat tobiasBora: working tree and working copy are the same.20:03
tobiasBora: do you know what the index is?20:03
cdown joined20:03
pfleck left20:07
tobiasBora nedbat: I used to know, but I forgot a bit, if I'm right it's like the list of all files and the associated hash for all the three "version" that may be in staging area, HEAD, and working copy?20:08
staafl left20:10
atrigent joined20:12
Mattiaslndstrm left20:12
sieve joined20:12
Mattiaslndstrm joined20:12
kerframil joined20:13
cagmz left20:14
Wetmelon joined20:16
devster31 left20:16
carissimo left20:16
alyptik joined20:17
fstd_ joined20:21
staafl joined20:23
inkbottle left20:23
cswl left20:24
fstd left20:25
fstd_fstd20:25
_noblegas joined20:25
sjoshi left20:27
sjoshi joined20:29
devster31 joined20:29
dilfridge left20:29
errst left20:30
fattredd joined20:32
yyy joined20:34
ah364 joined20:38
Mattiaslndstrm left20:39
geekodour08 left20:39
ah364 left20:39
geekodour08 joined20:39
r1ch left20:40
dilfridge joined20:40
Nixew left20:41
ah364 joined20:44
mowcat joined20:44
Regon joined20:45
averell left20:45
fattredd I'm trying to setup a submodule that is nested inside of my working dir. Here's the issue I'm having: http://ix.io/1z3D20:46
m0viefreak joined20:47
averell joined20:48
fattredd crap. I meant this: o/1z3D20:48
http://ix.io/1z3F20:48
ah364 left20:48
fattredd good lord. I'm falling apart20:48
ah364 joined20:49
jstimm left20:50
sanscoeu_ joined20:51
lucasb left20:51
mra90 is there a difference between git add and git -a20:53
?20:53
vavkamil joined20:53
kadoban mra90: Other than the second one doesn't seem to exist?20:54
navidr joined20:54
sanscoeur left20:54
kerframil left20:56
bsaboia left20:56
bsaboia joined20:56
PacKetSlayer left20:57
bookworm left20:58
PacKetSlayer joined20:58
bookworm joined20:58
pfleck joined20:59
plexigras left20:59
random_yanek left20:59
Whiskey joined21:00
hofmann3900 joined21:00
plexigras joined21:00
kerframil joined21:02
n3wborn joined21:03
mdk joined21:04
n3wborn left21:04
n3wborn joined21:04
satifant left21:09
Silenced left21:09
mat001 left21:10
random_yanek joined21:11
devster31 left21:12
mat001 joined21:12
mobile_c joined21:15
mobile_c_ left21:16
mona_x left21:17
ah364 left21:17
pfleck left21:18
YuGiOhJCJ joined21:19
elichai2 left21:20
errr left21:23
fattredd left21:24
mobile_c left21:24
devster31 joined21:26
mooasaurus joined21:29
blackmesa1 left21:32
flying_sausages left21:33
leeN left21:34
metrixx joined21:35
akushner left21:37
metrixx_ left21:39
satifant joined21:39
akushner joined21:39
mat001_ joined21:41
Silmarilion left21:44
mat001 left21:44
sanscoeu_ left21:46
sanscoeur joined21:47
sieve left21:47
im0nde left21:47
cdown left21:47
cdown joined21:48
errr joined21:48
snowgoggles joined21:53
courrier left21:54
tobiasBora Hello,21:54
lacrymology left21:56
tobiasBora I'd like to know, I'd like to "git rm" all the files that are tracked, what is the best way to do that?21:57
brandonkal joined21:59
flying_sausages joined21:59
tobiasBora (I don't have a single shot command, that does not involve bash like https://superuser.com/questions/442625/git-delete-all-tracked-files)21:59
hofmann3900 left22:01
plexigras left22:01
im0nde joined22:01
henriquev joined22:01
fragamus joined22:04
Siecje left22:08
venmx joined22:10
r1ch joined22:12
xcm left22:13
xcm joined22:13
Dougie187 left22:13
kerframil left22:13
Mattiaslndstrm joined22:15
sieve joined22:15
hofmann3900 joined22:20
cfoch left22:21
sieve left22:21
diogenese left22:26
Mattiaslndstrm left22:26
Darcidride left22:27
nurdie left22:28
AbleBacon left22:29
nurdie joined22:29
benharri joined22:29
diogenese joined22:29
Zexaron joined22:32
_noblegas left22:33
nurdie left22:34
j416 tobiasBora: git rm -r .22:34
make sure you have a backup just in case.22:35
keiser left22:38
fragamus left22:40
n3wborn left22:41
n3wborn joined22:43
dilfridge left22:43
atrigent left22:45
metrixx left22:47
RoriconKnight joined22:49
tobiasBora j416: great thank you!22:49
Can I join that with "git add -A"22:49
(after a cp)22:50
dilfridge joined22:50
wootehfoot left22:50
j416 what would you expect that to do22:51
you just remove the files22:51
removed*22:51
you probably mean 'git reset --hard'.22:51
gloomy_ left22:53
tobiasBora j416: Well basically I have a zip file that contain the new "version"22:54
and I'd like to remove all files from the current version, and then move the files from the zip file on the working tree and all them all22:55
the only thing is that the zip file may be already in the working tree under ".svg", so I don't want 'git reset --hard' to remove this folder, that's why I was doing "git rm -r ."22:56
gloomy joined22:57
j416 I don't follow.22:57
justanotheruser left22:57
j416 as we learnt just a few hours ago in this channel, don't have untracked files that you care about.22:57
and definitely don't add them to your ignore/exclude list.22:58
as long as you have a backup all is ok, no?22:58
just try.22:58
tobiasBora j416: Well I've a given project on my repo. I received a new version from a zip file. I put this zip file in .svg and extract here there. I would like to keep this .svg in case of a bug that would lose everything.22:59
j416 a new version of what22:59
and how did you put a zip file in an svg22:59
tobiasBora j416: Well I'm asking because it's for a script, so if I try manually I may forget some special cases22:59
j416 sorry I don't follow22:59
tobiasBora j416: oh ^^22:59
.svg is the name of the folder where I put my saved files22:59
maybe the name is not clear, it's derived from french ^^23:00
j416 commit it then23:00
if you care about it23:00
if it's committed it'll be easier to get back if you do something wrong23:00
tobiasBora j416: I don't really care. I just want to have a backup in case something goes wrong, and this may not be located directly in the repo...23:00
j416 if it's not committed, most of the time you're out of luck unless you have a backup outside of git23:00
!backup23:01
gitinfo Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups23:01
tobiasBora j416: The thing is that this zip files will be already in git, so I don't see the point to have two differents backups in git.23:01
But I want to keep them in case something goes wrong during the sync, so that I have very small changes to lose stuff23:02
justanotheruser joined23:03
j416 so commit it or take a backup of the entire repo and work tree23:03
iam730 left23:03
j416 or both for that matter23:03
tobiasBora and also the second reason why I don't want to git them is that in my project design, the branch are synced with an online service, and this service won't accept too large files, so no zip basically.23:03
navidr left23:04
TikityTik left23:04
tobiasBora but for now I don't have any valuable items, I'm just testing my script23:04
and trying to find efficient way to proceed that won't break if someone uses the script in an unusual manner.23:05
iam730 joined23:05
j416 you don't need to push the ref just because you committed something23:06
TikityTik joined23:06
j416 commits are local.23:06
unless you have a weird commit hook, of course.23:07
dilfridge left23:07
tobiasBora j416: sure, but my process is a bit more complicated, and the whole goal of this project is exactly to do this push at some point.23:09
iam730 left23:09
tobiasBora but actually if I can do that then I may be interested to git them:23:09
MACscr left23:09
tobiasBora nevermind23:10
well, if I could have an equivalent of releases (like in github) inside git, it could be interesting, else it won't fit in my project smoothly23:11
TJ- left23:11
j416 I don't understand what you want to do.23:11
I thought you wanted to try something out and have a plan B in case it doesn't work out. A backup seems like it'd provide that plan B perfectly.23:12
sauercrowd left23:12
Phylock left23:13
r1ch left23:14
iam730 joined23:15
tobiasBora j416: no no23:15
I don't mind plan B23:15
I just want to find the easier way to replace basically a project with another23:16
so for now I'm planning to do "git rm -r -f ."23:16
then copy the new project23:16
and then:23:16
blackntan joined23:16
Kaisyu joined23:17
blackntan left23:17
tobiasBora "git add --all -- :!.svg"23:17
r1ch joined23:17
tobiasBora sorry:23:17
"git add --all -- :!.svg"23:17
"git add --all -- :!.svg/*"23:17
is it a good way to proceed or not?23:18
Zexaron left23:18
iam730 left23:19
j416 sorry, I don't understand what you're trying to do.23:20
iam730 joined23:20
j416 make a backup, try it.23:20
iam730 left23:20
tobiasBora ok nevermind, thanks anyway23:20
fission6 left23:21
iam730 joined23:21
igemnace joined23:23
kerframil joined23:23
dege left23:24
r1ch left23:25
CodeSlingerPaul left23:27
r1ch joined23:27
iam730 left23:27
iam730 joined23:27
r1ch left23:30
pionen joined23:30
mra90 left23:31
venmx left23:32
irqq joined23:35
cliluw left23:35
irqq left23:35
irqq joined23:37
cliluw joined23:37
basteh left23:38
mat001_ left23:45
Regon left23:48
shabius left23:49
mat001 joined23:50
orbyt_ left23:50
shabius joined23:51
TikityTik how do i move my working directory to an existing branch?23:52
kjartan left23:52
TikityTik so i can make a commit there?23:53
kjartan joined23:57
tobiasBora TikityTik: I'm not a professionnal, but I'd use stash23:58
git stash push --all23:58
git checkout <your branch>23:59
TikityTik too much wasted movements, i want to move my changes to an existing local branch23:59
tobiasBora git stash pop23:59

Logs Search ←Prev date Next date→ Channels Documentation