Difference between revisions of "Talk:VCS package guidelines"

From ArchWiki
Jump to: navigation, search
(Suggestions)
(Suggestions: Change needed to the example)
Line 31: Line 31:
  
 
--[[User:Det|Det]] ([[User talk:Det|talk]]) 16:41, 10 April 2013 (UTC)
 
--[[User:Det|Det]] ([[User talk:Det|talk]]) 16:41, 10 April 2013 (UTC)
 +
 +
----
 +
The following function will list not only the total number of edits, but also the tag of the last commit
 +
{{hc|pkgver() {
 +
  cd local_repo
 +
  echo $(git rev-list --count master).$(git rev-parse --short master)
 +
}
 +
 +
|1142}}
 +
So the following should be used as the example title:
 +
 +
{{ic|Using the total count of commits and the tag of the last commit. }}
 +
 +
And the example output should be changed to something like
 +
 +
    1142.a17a017
 +
 +
--[[User:X33a|X33a]] ([[User talk:X33a|talk]]) 17:50, 10 April 2013 (UTC)

Revision as of 17:50, 10 April 2013

Comments

I don't use cvs. How can you describe the pkgver for cvs (for pacman 4.1)? --Dracorp (talk) 09:31, 6 April 2013 (UTC)

Suggestions

Could we consider a guideline to use firewall-friendly protocols when possible (e.g. https://github.com/matplotlib/matplotlib.git instead of git://github.com/matplotlib/matplotlib.git)? --Mitch feaster 14:34, 15 November 2011 (EST)


Since Thestinger decided to protect the entire page (for whatever reason):

1) Thestinger's change (7:03, 10 April 2013 (UTC)):

→‎Subversion:  $SRCDEST not necessary

Wrong, see the note you left behind. svn export doesn't copy .svn, which means getting the version won't work anymore:

[$srcdir]$ svnversion
Unversioned directory
Thanks, reverted. -- thestinger (talk) 16:45, 10 April 2013 (UTC)

2) Danielwallace's change (04:32, 10 April 2013 (UTC)):

pkgver() {
   cd local_repo
−  git rev-list --count HEAD
+  echo $(git rev-list --count master).$(git rev-parse --short master)
}
- [...]
1142

That's good but you left the title and the sample output intact. Also, the first example still uses git describe --always.

--Det (talk) 16:41, 10 April 2013 (UTC)


The following function will list not only the total number of edits, but also the tag of the last commit

pkgver() {
  cd local_repo
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

1142

So the following should be used as the example title:

Using the total count of commits and the tag of the last commit.

And the example output should be changed to something like

   1142.a17a017

--X33a (talk) 17:50, 10 April 2013 (UTC)